A cloud-based identity and access management service for securing user authentication and resource access
Hello NOR AZAH JUSOH,
Bulk create doesn't mark the CSV password as temporary - I tested it in my lab: bulk-created user signs in with the initial password without being asked to change it, and the template has no column for it. You can set the flag afterwards with Microsoft Graph PowerShell, reusing the same CSV you used for the upload / creation:
Connect-MgGraph -Scopes "User-PasswordProfile.ReadWrite.All"
Import-Csv "C:\path\to\your-bulk-create-file.csv" | ForEach-Object {
Update-MgUser -UserId $_.'User name [userPrincipalName] Required' -PasswordProfile @{ ForceChangePasswordNextSignIn = $true }
}
Disconnect-MgGraph
This small script sets the flag forceChangePasswordNextSignIn to true that means the user needs to change the password on the next sign-in - I would test it with one user first and then you can proceed with the full list.
you can also read this: "User-PasswordProfile.ReadWrite.All is the least privileged permission to update the passwordProfile property." here
Best Regards
Alex