Skip to content

aad policy list

Returns policies from Azure AD

Usage

m365 aad policy list [options]

Options

-p, --policyType [policyType]
The type of policies to return. Allowed values activityBasedTimeout,authorization,claimsMapping,homeRealmDiscovery,identitySecurityDefaultsEnforcement,tokenIssuance,tokenLifetime. If omitted, all policies are returned
-h, --help
output usage information
--query [query]
JMESPath query string. See http://jmespath.org/ for more information and examples
-o, --output [output]
Output type. json,text. Default text
--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 --policyType "claimsMapping"

More information