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 / The specified password...
Power Automate
Answered

The specified password does not comply with password complexity requirements. Please provide a different password.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello,

 

I created a flow to create a user in AD when a record is created in Dataverse.

 

Step 1:

Name: VariableXYZ

Created a variable for the password generation

Value :  rand(10000000, 99999999)

 

Step 2: Create a user in AD

Password: Use a variable from step 1(VariableXYZ)

 

Step 3: Send password to the user via email(Send an email (V2))

 

To: test@gmail.com

Subject : XYZ

Body: New password is created : (VariableXYZ)

 

When I run my flow then I am getting an error: "The specified password does not comply with password complexity requirements. Please provide a different password."

 

I tried with password: substring(utcNow(),20,8) too but getting the same error.

 

Does anybody know what is the issue?

 

Regards,

Parag Chapre

Categories:
I have the same question (0)
  • PrasadAthalye Profile Picture
    on at

    Your Accounts Admin team must have set Password Policy. Please check your password policy. Typically, it involves one Capital letter, one Special Character, characters and numbers. If you can generate a password with that,  it will work.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Hi Prasad,

     

    Yes, It is set up by the Admin team but How can I generate such a password in Power automate?

  • Verified answer
    PrasadAthalye Profile Picture
    on at

    You will have to play with expressions.

     

    Example:  substring(guid(),0,8) will return you a string. Then Append it with random number and then use toUpper() on portion of it and append special character like # or @.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Ok. I got it. Thank you.

  • JimmyW Profile Picture
    2,563 on at

    @Anonymous 

    What is the password policy?
    You then need to generate based on that policy.

    Check this out, should help you build a random password that matches your password policy.
    https://www.youtube.com/watch?v=dDIpIJTsfXQ

     

     

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Automate

#1
Haque Profile Picture

Haque 608

#2
Valantis Profile Picture

Valantis 416

#3
11manish Profile Picture

11manish 348

Last 30 days Overall leaderboard