In order to disable password expiration for a cloud-only user account, please refer to the instructions and cmdlets below:
1. Connect to AzureAD as per the cmdlet below,
Connect-AzureAD -AccountId <Your Global Admin email address>
Note: Use "Install-Module -Name" AzureAD if the Azure AD module is not already installed
2. Run the cmdlet below to disable password expiration for the referred cloud-only account,
Set-AzureADUser -ObjectId user1@abc.onmicrosoft.com -PasswordPolicies DisablePasswordExpiration
Note: This option can only be enabled via PowerShell, please refer to Set an individual user's password to never expire - Microsoft 365 admin | Microsoft Docs
You can also do the following:
- Go to the Microsoft 365 admin center
- Select Settings
- Select Org Settings
- Select the Security & Privacy tab
- Select Password expiration policy
- Uncheck the box next to Set user passwords to expire after a number of days
- Select Save
Comments
0 comments
Please sign in to leave a comment.