cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
TomCr
Regular Visitor

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
Highlighted
Community Support
Community Support

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

bu11frogg Advocate I
Advocate I

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
Highlighted
Community Support
Community Support

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

bu11frogg Advocate I
Advocate I

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
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Automate Community!

firstImage

Now Live: Power Virtual Agents Community!

We are excited to announce the launch of Power Virtual Agents Community. Check it out now!

firstImage

New & Improved Power Automate Community Cookbook

We've updated and improved the layout and uploading format of the Power Automate Cookbook!

thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Community Summit North America

The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Users online (7,215)