Skip to main content

Notifications

Community site session details

Community site session details

Session Id : Ck3reN/9I/sz7ptK0BwYg6
Power Automate - Power Automate Desktop
Unanswered

Power Automate Desktop - Active Directory - Get user info

Like (0) ShareShare
ReportReport
Posted on 28 Jun 2021 23:37:15 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

 

  • Community Power Platform Member Profile Picture
    on 01 Oct 2021 at 12:15:55
    Re: Power Automate Desktop - Active Directory - Get user info

    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.

  • deep_Shobhit Profile Picture
    11 on 04 Aug 2021 at 18:00:55
    Re: Power Automate Desktop - Active Directory - Get user info

    No Luck 😞

  • jtwohig Profile Picture
    26 on 14 Jul 2021 at 20:32:05
    Re: Power Automate Desktop - Active Directory - Get user info

    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 12 Jul 2021 at 18:04:25
    Re: Power Automate Desktop - Active Directory - Get user info

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

  • Rkv_ Profile Picture
    166 on 08 Jul 2021 at 11:00:02
    Re: Power Automate Desktop - Active Directory - Get user info

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

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

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,745 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard
Loading started