Skip to content

Instantly share code, notes, and snippets.

Created October 2, 2018 22:49
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
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
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