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 / 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

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
    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
    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

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 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard