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 / Active Directory User ...
Power Automate
Unanswered

Active Directory User Creation using power Automate Desktop

(1) ShareShare
ReportReport
Posted on by 4

I am trying to create Bulk Active Directory users using Power Automate Desktop. I tried using CSV and Excel to capture the data and tried utilizing Variables to create the User. But It's throwing an error "An invalid dn syntax has been specified. (Exception from HRESULT: 0x80072032)"

 

However, the User creation test for a single user is successfully tested. Kindly guide me if you have any clue to resolve this issue.

I have the same question (0)
  • Riyaz_riz11 Profile Picture
    4,214 Super User 2026 Season 2 on at

    Hi @coachsbansal  

    It should work if you are using as for each then it will work one by one.

    Even you can use powershell script to create a user in AD.

     

    Regards

    Ahammad Riyaz

    --------------------------------------------------------------------------------
    If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

     

  • coachsbansal Profile Picture
    4 on at

    No, It's not working using the CSV/XLS file. Please suggest 

  • Solo12 Profile Picture
    7 on at

    Guys, I got the same error and found the solution. Here is how I did it.

    There are whitespaces in the text (username, first name, last name, etc.) So I added a trim text option to the ColumnAsList. Once I added that option to all the text that was pulled from the CSV, I was good to go.

     

    I provided screenshots on another thread.

     

    https://powerusers.microsoft.com/t5/Power-Automate-Desktop/PAD-Create-multiple-AD-Users-from-Excel/td-p/1904763

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

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
David_MA Profile Picture

David_MA 269 Super User 2026 Season 2

#2
trice602 Profile Picture

trice602 184 Super User 2026 Season 2

#3
11manish Profile Picture

11manish 136 Super User 2026 Season 2

Last 30 days Overall leaderboard