web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Escaping special chara...
Power Automate
Unanswered

Escaping special characters in AD distinguished names

(1) ShareShare
ReportReport
Posted on by 2
I'm pulling distinguished names from a AD group and then looping through "get user info" to create a data table.
 
The loop works fine until it hits a distinguished name that has an escaped character in it (example CN=Jon Doe\, II,OU=...) at which point it errors out being unable to find the directory object.
 
I was able to validate it was the "," in the CN causing the problem by renaming a test user. At out scale, it is not practical to remove special characters from all usernames to make the automation work.
 
Does anyone have any ideas on how I can pass a distinguished name containing special characters to other power automate modules (get user info, is just the first or several that will run off the distinguished names on my list)?
 
A generalized solution that could handle all LDAP special characters would be preferred. 
 
Thanks,

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Automate

#1
11manish Profile Picture

11manish 243 Super User 2026 Season 2

#2
David_MA Profile Picture

David_MA 211 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 190

Last 30 days Overall leaderboard