Forum Discussion
Patrick75
Aug 21, 2025Copper Contributor
Help with Expression
I am trying to build an expression in the cloud sync config. I'm writing entra groups back on prem and I want to send them to different OUs based on the displayName as per this example: U...
Patrick75
Aug 21, 2025Copper Contributor
I spent all day on this and then worked out how to do it 5 minutes after posting this!
If it helps anyone else, I went with this expression
Append("OU=", Append(Item(Split([displayName], "-"), 2), ",OU=Application,OU=Groups,DC=contoso,DC=net"))
Obviously targeted at the "parentDistinguishedName" attribute. Worked like a charm