Hello team,
I am wondering if anyone has tried to use the beforeProvisioning rule with multiple event triggers for a given set of actions.
Use Case: Upon termination, we need to handle a given set of users in Active Directory differently than the rest of the population. There are about 20 users who are in a specific OU, and when they reach the ‘terminated’ LCS, they need to go to a different termed OU than everyone else. My thought process is that in the beforeProvisioning rule, we could use two event triggers to separate these folks from the rest. One of the triggers will be when the user reaches the terminated LCS, and the other trigger would be if they have a specific attribute that each person has in this special OU. The second attribute could be department, distinguished name, etc, but the exact attribute doesn’t matter at this point.
Example for one set of actions for the special population:
“Identity Attribute Triggers”: [
{
“Attribute”: “cloudLifecycleState”,
“Value”: “terminated”,
“Operation”: “eq”
},
{
“Attribute”: “OrgName”,
“Value”: “Finance”,
“Operation”: “eq”
}
],
“Operation”: “Disable”
…
{
“eventActions”: [
{
“Action”: “ADMoveAccount”,
“Attribute”: “AC_NewParent”,
“Value”: “OU=Terminated,OU=Terms,…DC=com”
},
{
“Action”: “RemoveADEntitlements”,
“Attribute”: “memberOf”,
“Value”: “CN=Domain Users,CN=…”
},
{
“Action”: “ScramblePassword”,
“Attribute”: “password”,
“Value”: null
},
Then we would use something like this for the rest of the population:
“Identity Attribute Triggers”: [
{
“Attribute”: “cloudLifecycleState”,
“Value”: “terminated”,
“Operation”: “eq”
},
{
“Attribute”: “PrimaryOrgName”,
“Value”: “Finance”,
“Operation”: “ne”
}
],
“Operation”: "Disable
…
Has anyone tried this or know if it works? Our other option would be to adjust our LCS transform to put the special users into a different LCS and use the new LCS as the Identity Attribute Trigger.
Any help is greatly appreciated. Thanks!