web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Automate / Disable password reset...
Power Automate
Answered

Disable password reset after user creation

(0) ShareShare
ReportReport
Posted on by 2

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!

Categories:
I have the same question (0)
  • Verified answer
    v-duann-msft Profile Picture
    on at

    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-powershell?view=o365-worldwide

    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-powershell?view=o365-worldwide

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

     

    Hope the content above may help you.

     

    Best regards,

    Anna

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Automate

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 519 Super User 2025 Season 2

#2
Tomac Profile Picture

Tomac 296 Moderator

#3
abm abm Profile Picture

abm abm 232 Most Valuable Professional

Last 30 days Overall leaderboard