
Announcements
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!
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.
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.
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
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.
Hope the content above may help you.
Best regards,
Anna