cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomCr
Level: Powered On

Generate random passwords

Hi,

 

We have build a flow to automate the onboarding proccess using the azure actions. In the create user action we can hardcode a password but is there a way to have a random password generated?

 

Many thanks in advance for your support!

 

Kind regards,

Tom

2 ACCEPTED SOLUTIONS

Accepted Solutions
Community Support Team
Community Support Team

Re: Generate random passwords

Hi @TomCr

 

I afraid that the only way should be take a try with the rand() expression to gets a random integer from the specified range as below:

Capture.PNG

 

The expression in the Password column as below:

rand(10000000, 99999999)

 

Best regards,

Alice

View solution in original post

Highlighted
bu11frogg
Level: Powered On

Re: Generate random passwords

I do this using a String variable with the Expression "substring(guid(),0,8)" but that may not be complex enough for some password requirements.  I suppose you could use "toUpper()" for the first few characters of the string and leave the last few lowercase to add complexity.

View solution in original post

2 REPLIES 2
Community Support Team
Community Support Team

Re: Generate random passwords

Hi @TomCr

 

I afraid that the only way should be take a try with the rand() expression to gets a random integer from the specified range as below:

Capture.PNG

 

The expression in the Password column as below:

rand(10000000, 99999999)

 

Best regards,

Alice

View solution in original post

Highlighted
bu11frogg
Level: Powered On

Re: Generate random passwords

I do this using a String variable with the Expression "substring(guid(),0,8)" but that may not be complex enough for some password requirements.  I suppose you could use "toUpper()" for the first few characters of the string and leave the last few lowercase to add complexity.

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

firstImage

Incoming: New and improved badges!

We've given our badges an overhaul and also added some brand new ones!

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

sixthImage

Power Platform World Tour

Find out where you can attend!

seventhimage

Webinars & Video Gallery

Watch & learn from the Power Automate Community Video Gallery!

Top Kudoed Authors (Last 30 Days)
Users online (4,693)