cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Mett
New Member

Disable password reset after user creation

Hello,

 

I use a Flow to create an Azure-AD user with Sharepoint.

 

I create the password with the default "createpassword"-function:

Image: https://ibb.co/tbfw4w9

 

The problem is that the users have to change their password after the first login.

I tried to add the same password with the "user update"-function but there isn't a field to set the password.

 

Image: https://ibb.co/cLm8CcG

 

How is it possible to disable the forced password reset?

 

Thank you for your help!

1 ACCEPTED SOLUTION

Accepted Solutions
v-duann-msft
Community Support
Community Support

Hi @Mett 

 

Thank you for posting.

 

According to your description, you would like to bulk create Azure AD user using flow and avoid them resetting password at next login. If any misunderstanding, please kindly let me know.

 

I’m afraid it’s impossible to achieve it in flow. There is no option to disable password reset at first time. We do have official clarification on this part.

v-duann-msft_0-1619060133990.png

https://docs.microsoft.com/en-us/connectors/azuread/#create-user

 

This is by design behavior using flow and we can’t customize further. I recommend you can go to UserVoice website to post your idea.

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

By the way, if you just want to create user in bulk without forcing them changing password. We can also use powershell command with CSV file if you don’t mind. Because PS command supports this feature.

v-duann-msft_1-1619060133993.png

https://docs.microsoft.com/en-us/powershell/module/msonline/new-msoluser?view=azureadps-1.0

 

Relevant steps:

1.Prepare CSV with necessary user information(You can export SharePoint list to excel and convert to CSV).

2.Command to connect to O365

https://docs.microsoft.com/en-us/microsoft-365/enterprise/create-user-accounts-with-microsoft-365-po...

3.Command to bulk create AAD user:

Import-csv $path | foreach { New-Msoluser -userPrincipalName $.UserPrincipalName -displayname $.displayname -firstname $.firstname -lastname $.lastname -password $_.Password -usagelocation us -ForceChangePassword $false}

 

You can also refer below links for detailed information.

https://docs.microsoft.com/en-us/microsoft-365/enterprise/create-user-accounts-with-microsoft-365-po...

https://community.spiceworks.com/how_to/66141-powershell-create-and-license-users-in-bulk-on-office-...

 

Hope the content above may help you.

 

Best regards,

Anna

View solution in original post

1 REPLY 1
v-duann-msft
Community Support
Community Support

Hi @Mett 

 

Thank you for posting.

 

According to your description, you would like to bulk create Azure AD user using flow and avoid them resetting password at next login. If any misunderstanding, please kindly let me know.

 

I’m afraid it’s impossible to achieve it in flow. There is no option to disable password reset at first time. We do have official clarification on this part.

v-duann-msft_0-1619060133990.png

https://docs.microsoft.com/en-us/connectors/azuread/#create-user

 

This is by design behavior using flow and we can’t customize further. I recommend you can go to UserVoice website to post your idea.

https://powerusers.microsoft.com/t5/Power-Automate-Ideas/idb-p/MPAIdeas

 

By the way, if you just want to create user in bulk without forcing them changing password. We can also use powershell command with CSV file if you don’t mind. Because PS command supports this feature.

v-duann-msft_1-1619060133993.png

https://docs.microsoft.com/en-us/powershell/module/msonline/new-msoluser?view=azureadps-1.0

 

Relevant steps:

1.Prepare CSV with necessary user information(You can export SharePoint list to excel and convert to CSV).

2.Command to connect to O365

https://docs.microsoft.com/en-us/microsoft-365/enterprise/create-user-accounts-with-microsoft-365-po...

3.Command to bulk create AAD user:

Import-csv $path | foreach { New-Msoluser -userPrincipalName $.UserPrincipalName -displayname $.displayname -firstname $.firstname -lastname $.lastname -password $_.Password -usagelocation us -ForceChangePassword $false}

 

You can also refer below links for detailed information.

https://docs.microsoft.com/en-us/microsoft-365/enterprise/create-user-accounts-with-microsoft-365-po...

https://community.spiceworks.com/how_to/66141-powershell-create-and-license-users-in-bulk-on-office-...

 

Hope the content above may help you.

 

Best regards,

Anna

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

MPA Licensing.jpg

Ask your licensing questions at the Power Automate AMA!

Join Priya Kodukula and the licensing team, super users and MVPs to find answers to your questions on Power Automate licensing.

Users online (1,984)