问题描述
我正在对本地和社交帐户使用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 expirationBut I want to update the custom policy so new users have the no expiration behavior.
我该怎么做?
提前谢谢!杰曼
推荐答案
要禁用密码过期,必须设置passwordPolicies 属性. com/en-us/library/azure/ad/graph/api/entity-and-complex-type-reference#user-entity"rel =" nofollow noreferrer> user 对象设置为"DisablePasswordExpiration",如下所示:
To disable expiration of passwords, you must set the passwordPolicies property of the user object to "DisablePasswordExpiration", as follows:
1)声明 passwordPolicies 声明类型:
<ClaimType Id="passwordPolicies">
<DisplayName>Password Policies</DisplayName>
<DataType>string</DataType>
</ClaimType>
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>
请参阅自定义策略入门包例如.
这篇关于删除b2c自定义策略上的密码到期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!