Created
October 2, 2018 22:49
-
-
Save jkbryan/3bc05a2d8d63d5a987a3e192f07f59fa to your computer and use it in GitHub Desktop.
shouldprojecttomv-example.vb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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