简体   繁体   中英

Api's to get Password Policy in Azure AD

I need API's to get Password Policy of Azure Active Directory with help of domain name or with users mailId

There are Azure AD password policies from this link . And it is used for Azure AD user , but not external users.

There is no method about both Microsoft Graph and Azure AD Graph API for external users.

For more details, see Azure AD Graph API and Microsoft Graph .


Is there any API's to get Password Policy for Azure AD user.

You could use Microsoft Graph:

GET https://graph.microsoft.com/beta/users/{userPrincipalName}?$select=displayName,passwordPolicies

The result will look like this:

{
    "@odata.context": "https://graph.microsoft.com/beta/$metadata#users(displayName,passwordPolicies)/$entity",
    "displayName": "xxxxxx",
    "passwordPolicies": "DisablePasswordExpiration"
}

You can find details about this property here .

在此处输入图像描述

There is another way to use Get-MsolPasswordPolicy by Powershell.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM