Reset a password and turn on security defaults
In this task you'll check that security defaults are turned on.
Two everyday jobs. Resetting a password gives a locked-out user a temporary password that they must change when they next sign in.
Security defaults are a free set of protections: everyone must register for multi-factor authentication (MFA), admins must use it every time, and old sign-in methods that can't do MFA are blocked. New tenants have them turned on. Organisations with Entra ID P1 usually replace them with their own Conditional Access policies.
Example. A Larkfield Group store worker is locked out on Monday morning. The service desk resets the password, and because security defaults are on, the worker also approves the sign-in in the Microsoft Authenticator app.
Before you start
You need: Helpdesk Administrator to reset passwords; Security Administrator for security defaults. Time: 10 minutes.
Where to look
- Home
- Microsoft Entra ID
- Properties
- Manage security defaults
Steps
- Open Microsoft Entra ID, select Users and open Test User.
- Select Reset password in the command bar, then Reset password in the panel.In a narrow window, Reset password is in the ... menu, next to Revoke sessions.
- Copy the temporary password. The user must change it when they next sign in.Give it to the person privately, never in the same message as their user name.
- Go back to Microsoft Entra ID and select Properties (a tab on Overview, or under Manage in the service menu).
- Scroll to Security defaults at the bottom. A new tenant shows Your organization is protected by security defaults.
- If it doesn't say that, select Manage security defaults, choose Enabled and select Save.Turning them off leaves accounts protected by passwords alone, so the portal asks for a reason.
- Optional: in a private browser window, sign in as Test User yourself. After changing the password, you'll be asked to set up the Authenticator app.This is what every new user sees while security defaults are on.
Commands
# Reset a user's password and make them change it at next sign-in
az ad user update --id test.user@<your-domain> \
--password "<a new temporary password>" \
--force-change-password-next-sign-in true
# Are security defaults on? (true or false, through Microsoft Graph)
az rest --method get \
--url https://graph.microsoft.com/v1.0/policies/identitySecurityDefaultsEnforcementPolicy \
--query isEnabled
Watch out for
- Cost
- Security defaults are free. Conditional Access, the more flexible option, needs Entra ID P1.
- Security
- Leave security defaults on unless you've replaced them with Conditional Access policies. MFA stops the great majority of attacks on passwords.
- Common mistakes
- Turning security defaults off to stop the MFA prompts. Trying to reset an admin's password with Helpdesk Administrator, which only covers ordinary users and some lower admin roles.
Clean up
Leave security defaults on. When you've finished section 4, delete Test User as shown in Create a user.
Words to know
- MFA
- Multi-factor authentication: proving it's you with something extra, such as an app on your phone, as well as a password.
- Security defaults
- Free, ready-made sign-in protections for the whole tenant.
- Conditional Access
- Your own sign-in rules, such as requiring MFA outside the office. Needs Entra ID P1.
Tick off each step and track your progress in the guide.
Open this task in Azure Portal, Hands On