Skip to main content

Notifications

Community site session details

Community site session details

Session Id : UOmTjoylAMcRbtgPuQ0qOS
Power Automate - Power Automate Desktop
Unanswered

Active Directory Attributes in Power Automate Desktop

Like (0) ShareShare
ReportReport
Posted on 14 Jul 2021 20:50:33 by 26

I am just starting with Power Automate Desktop and am trying to create flows to add, read, and modify users in Active Directory.

 

It is really easy to do something but I can't see how to do much. I can get user info, create users, and modify users but it seems like only a few fields are available. 

 

In particular, I want to be able to check and populate the user principal name, employee number, and proxy addresses. There is a large list of attributes that might be useful if we could populate them automatically.

 

Am I missing a way to get at the other attributes?

  • mike-crowley Profile Picture
    15 on 21 Jun 2022 at 21:48:26
    Re: Active Directory Attributes in Power Automate Desktop

    I agree with your general sentiment - searching for an in-box solution is what led me to this post in the first place, and I was just circling back to post a solution as a good citizen of the internet. 🙂

     

    I don't fully agree with your comment however. In my case, I'm doing a bunch of work in Power Automate Cloud Flows, handing a bit off to the desktop, where most of it is addressed by the in-box connectors, and then sending the output back to the cloud for more processing. I wouldn't want to throw out all of Power Automate because I can't do this one step with a native connector.

  • jtwohig Profile Picture
    26 on 21 Jun 2022 at 20:42:08
    Re: Active Directory Attributes in Power Automate Desktop

    Yes. But if I am going to have do some of it in Powershell I might as well do everything in Powershell. There is no need to use Power Automate. It would just be adding another tool and one more thing to go wrong.

  • mike-crowley Profile Picture
    15 on 21 Jun 2022 at 20:27:01
    Re: Active Directory Attributes in Power Automate Desktop

    You can pass the object's DN to a "Run PowerShell script" step and do whatever you want from there.

     

    e.g.

    set-adgroup %group_dn% -managedby %manager_dn%
  • HoldTheDip Profile Picture
    3 on 29 Jul 2021 at 14:29:32
    Re: Active Directory Attributes in Power Automate Desktop

    I am looking for the same solution.  How to edit Active Directory attributes with Power Automate Desktop?

  • jtwohig Profile Picture
    26 on 26 Jul 2021 at 16:06:57
    Re: Active Directory Attributes in Power Automate Desktop

    @JamesP_MSFT  When I did the Get User Info it only showed a few fields.

     

    jtwohig_0-1627315088488.png

    In Active Directory there are dozens more with the key ones for us being UPN and proxy addresses. If they are not correct when the accounts are created in Active Directory then when the AD Connect sync happens they get set up incorrectly in Office 365 and the only fix is to delete them and do it again.

     

    Could I be doing something wrong with Get User Info that is only getting me those few fields?

  • jtwohig Profile Picture
    26 on 23 Jul 2021 at 15:53:03
    Re: Active Directory Attributes in Power Automate Desktop

    Thanks. I will take a look when I am back in the office on Monday.

  • JamesP_MSFT Profile Picture
    Microsoft Employee on 23 Jul 2021 at 15:15:56
    Re: Active Directory Attributes in Power Automate Desktop

    Hello @jtwohig
    The dedicated group of actions for Active Directory offer a plethora of fields for user creation/modification.
    Regarding the checking, please user the Get user info action and take a look at the generated properties of the output variable.

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!

Markus Franz – Community Spotlight

We are honored to recognize Markus Franz as our April 2025 Community…

Kudos to the March Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,702 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,015 Most Valuable Professional

Leaderboard
Loading started
Loading complete