Is there a way to check a users current container before doing an update?

I want to setup a conditional expression that evalautes the users current container in AD.

If the users current container is SALES, then THEN set the manager to a specific person

For all other users, use the Auto constant to automatically set the manager based on their manager in UKG

1 Like

It is possible to do this by using a conditional expression to evaluate the users current container and then deciding what to do based on the current container value.

Here is an example I’ve mocked up:

WHEN
User.Container == ‘OU=Sales’
THEN
‘CN=John.Doe,OU=Management,DC=example,DC=com’

Default
Auto

The first expression checks the users current container, and if the user is in the Sales container, then set the Manager to a valid distinguishedName (reference to the manager) value.

For everybody else, use the Auto constant to automatically set the Manager based on their manager in UKG Pro.