cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
xenoguy
New Member

Active directory user formatting

Just trying out some basic stuff with power automate desktop and Active Directory.  have already run into some snags.

 

I tried getting the members of a group and then foreach looping.  but when using CurrentItem.DistinguishedName from the group member list, it's in the wrong format.

 

the user DN provided from the get group members is in this format:

 

LDAP://CN=last\, first,OU=Users,OU=User Accounts,OU=city,DC=contoso,DC=com

 

But any user operations require this format:

 

CN="last, first",OU=Users,OU=User Accounts,OU=city,DC=contoso,DC=com

 

 

I can work around this by using some regex replace on the string, but I think most people would expect this to just work.

 

It would be great if the input for the user operations was more flexible, or the output from "get group members" provided the right format.

0 REPLIES 0

Helpful resources

Announcements
Process Advisor

Introducing Process Advisor

Check out the new Process Advisor community forum board!

MPA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,030)