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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Power Automate Desktop...
Power Automate
Unanswered

Power Automate Desktop - Active Directory - Get user info

(0) ShareShare
ReportReport
Posted on by 11

Hi,

 

I'm trying to get user info and to modify a group membership by adding/removing a user using Power Automate Desktop. Everything else so far i.e. Connect to server using LDAP path, Get group info using this connection, Get group members using this connection gets me all details.

 

It completely fails to identify the AD user in any of the method I tried i.e. Get user info or Modify group. In both of these methods, its completely fails to identify the user using Distinguished name I'm supplying. The Distinguished name is also correct as I pulled it up and verified using two methods i.e.

 

1. Windows Explorer -> Security for any Folder -> Search User -> Columns -> Distinguished Name

2. .Net C# Code -> Object of UserPrincipal -> FindByIdentifity -> DistinguishedName property

 

Both method shows same vale for DN but same DN in Power Automate actions fails to resolve the user.

 

Please suggest if there is any known resolution for this. Also, instead of DN is there a way to provide User ID or Email for these actions as a more straight forward way to find and act on users.

 

deep_Shobhit_0-1624980144202.png

 

I have the same question (1)
  • Rkv_ Profile Picture
    166 on at

    Try Removing LDAP:// within the action.
    The LDAP path should be something like this for server dc=prefix,dc=example,dc=com

  • deep_Shobhit Profile Picture
    11 on at

    Hi @Rkv_ , thanks for responding... no luck with that as well... 😞

  • jtwohig Profile Picture
    26 on at

    Maybe you shouldn't have the OU. 

     

    Mine worked right away with 'CN=XXX XXXX, CN=Users, DC=XXXX, DC=XXX'

     

    I looked up the distinguished name on the AD server

  • deep_Shobhit Profile Picture
    11 on at

    No Luck 😞

  • Community Power Platform Member Profile Picture
    on at

    Hi 

    I have managed to get this to work. Get user info and added the user to group successfully. The correct distinguished names have to be used. 

     

    Connect to Server - LDAP path: LDAP://dcname.domain.local (you can check distinguished name attribute on your domain in AD users and computers. Your domain might be domainname.com)

     

    Get user info - Distinguished name: CN=Nimeshin Govender,OU=Users,DC=domain,DC=local (depending on which OU the account is located eg. if the account is located in IT OU inside of Users OU then OU=IT,OU=Users,DC=domain,DC=local )

     

    You can get the distinguished name including the full OU path and domain on the AD user object. Just view the attribute Editor tab and look for distinguishedName attribute and click view button, copy and paste the value. Ensure Advanced Features is ticked on you AD snap in so you will see this tab. 

     

    Hope this helps.

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 501 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 323 Moderator

#3
abm abm Profile Picture

abm abm 237 Most Valuable Professional

Last 30 days Overall leaderboard