aad policy list¶
Returns policies from Azure AD
Usage¶
m365 aad policy list [options]
Options¶
-t, --type [type]
- The type of policies to return. Allowed values
activityBasedTimeout
,authorization
,claimsMapping
,homeRealmDiscovery
,identitySecurityDefaultsEnforcement
,tokenIssuance
,tokenLifetime
. If omitted, all policies are returned -h, --help [help]
- Output usage information. Optionally, specify which section of command's help you want to see. Allowed values are
options
,examples
,remarks
,response
,full
. Default isfull
. --query [query]
- JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
- Output type.
json,text,csv,md
. Defaultjson
--verbose
- Runs command with verbose logging
--debug
- Runs command with debug logging
Examples¶
Returns all policies from Azure AD
m365 aad policy list
Returns claim-mapping policies from Azure AD
m365 aad policy list --type "claimsMapping"
More information¶
- Microsoft Graph Azure AD policy overview: https://docs.microsoft.com/en-us/graph/api/resources/policy-overview?view=graph-rest-1.0