Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Created October 2, 2018 22:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkbryan/3bc05a2d8d63d5a987a3e192f07f59fa to your computer and use it in GitHub Desktop.
Save jkbryan/3bc05a2d8d63d5a987a3e192f07f59fa to your computer and use it in GitHub Desktop.
shouldprojecttomv-example.vb
Public Function ShouldProjectToMV(ByVal csentry As CSEntry, ByRef MVObjectType As String) As Boolean Implements IMASynchronization.ShouldProjectToMV
If csentry.DN.ToString.ToLower.Contains("functional") Then
MVObjectType = "functionalID"
ShouldProjectToMV = True
ElseIf csentry.DN.ToString.ToLower.Contains("fimaccess") Then
'Those people who need to administer FIM, need a user account in the portal, so treat them as such and Project!
MVObjectType = "person"
ShouldProjectToMV = True
ElseIf csentry("employeeID").IsPresent Then
'Real users - e.g. those created by the User Office process and those historical users no longer in CDR (Initial Pre-Load) - But CDR is authoratative for all new users - so Projection occurs there also - this handles "normal" users - e.g. those fed from CDR directly.
MVObjectType = "person"
ShouldProjectToMV = True
Else
Throw New UnexpectedDataException("Unreferenced User type=" & csentry("samAccountName").Value)
End If
Throw New EntryPointNotImplementedException()
End Function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment