删除b2c自定义策略上的密码到期
我正在对本地和社交帐户使用B2C自定义策略.我了解,使用自定义策略,密码会在90天后过期,并且我可以按照以下步骤分别删除每个用户的过期时间: Azure AD B2C密码过期 但是我想更新自定义策略,以便新用户没有过期行为.
I'm using B2C custom policies for local and social accounts. I understand that with custom policies the password expires in 90 days and I can remove expiration for each user individually with this procedures: Azure AD B2C password expiration But I want to update the custom policy so new users have the no expiration behavior.
我该怎么做?
提前谢谢! 杰曼
要禁用密码过期,必须设置
To disable expiration of passwords, you must set the passwordPolicies property of the user object to "DisablePasswordExpiration", as follows:
1)声明 passwordPolicies
2)创建用户帐户时,将 passwordPolicies 声明默认为"DisablePasswordExpiration": 2) Default the passwordPolicies claim to "DisablePasswordExpiration" when the user account is created: 请参阅自定义策略入门包例如.<TechnicalProfile Id="AAD-UserWriteUsingLogonEmail">
<PersistedClaims>
<PersistedClaim ClaimTypeReferenceId="passwordPolicies" DefaultValue="DisablePasswordExpiration" />
</PersistedClaims>
</TechnicalProfile>