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

View solution in original post

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (2,330)