I have an onboarding function where I copy groups from one user to new users.
I use this function to get the template users groups:
This return the groups in this format:
{"MemberOf"::"CN=Domain Admins,CN=Users,DC=Fabrikam,DC=com", "CN=Enterprise Admins,CN=Users,DC=Fabrikam,DC=com"]}
How can i use this to assign the new user to these groups:
The input is formatted as Distinguished name , but I think the “,” is the delimiter, which why it might not work?
If I use the groups name, not the Distinguished name, it works. but i don’t have the option to get the MemberOf in another format.