ConnectionChangeTime

This got me out of a pickle today. A slip-up in a join rule caused hundreds of bad joins to be made. There were far too many to un-do by hand, but then I figured out I could add a few lines to the Provisioning Sub of the MVExtension to remove all the joins made in the past hour:

If mventry.ConnectedMAs(Ma Name).Connectors.Count > 0 _
AndAlso DateDiff(DateInterval.Hour, mventry.ConnectedMAs(Ma Name).Connectors.ByIndex(0).ConnectionChangeTime, Now) < 1 Then
  mventry.ConnectedMAs(Ma Name).Connectors.ByIndex(0).Deprovision()
End If

Handy!

About: Carol

I've been doing IT for 30 years, and IdM for 15. I live in Australia and build IdM solutions based on Microsoft Identity Manager. I also play the violin, but that doesn't help much with the IdM solutions.