Get-AuthenticationPolicy
This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings might be exclusive to one environment or the other.
Use the Get-AuthenticationPolicy cmdlet to view authentication policies in your organization. For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax.
Syntax
Default (Default)
Get-AuthenticationPolicy
[[-Identity] <AuthPolicyIdParameter>]
[-AllowLegacyExchangeTokens]
[-TenantId <String>]
[<CommonParameters>]
Description
You need to be assigned permissions before you can run this cmdlet. Although this article lists all parameters for the cmdlet, you might not have access to some parameters if they aren't included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see Find the permissions required to run any Exchange cmdlet.
Examples
Example 1
Get-AuthenticationPolicy | Format-Table -Auto Name
This example returns a summary list of all authentication policies.
Example 2
Get-AuthenticationPolicy -Identity "Engineering Group"
This example returns detailed information for the authentication policy named Engineering Group.
Example 3
Get-AuthenticationPolicy -AllowLegacyExchangeTokens
In Exchange Online, this example specifies whether legacy Exchange tokens for Outlook add-ins are allowed in the organization.
Parameters
-AllowLegacyExchangeTokens
Applicable: Exchange Online, Exchange Online Protection
This parameter is available only in the cloud-based service.
The AllowLegacyExchangeTokens switch specifies whether legacy Exchange tokens are allowed for Outlook add-ins in your organization. You don't need to specify a value with this switch.
Legacy Exchange tokens include Exchange user identity and callback tokens.
Important:
- Legacy Exchange Online tokens will be turned off for all organizations from August 2025 through September 2025. Once turned off, you can't use the AllowLegacyExchangeTokens switch on the Set-AuthenticationPolicy cmdlet to turn on these tokens. You get the warning "Legacy Exchange Online tokens are disabled" when you run the command
Get-AuthenticationPolicy -AllowLegacyExchangeTokens
. You can contact Microsoft Support to request an exception. For more information, see Nested app authentication and Outlook legacy tokens deprecation FAQ. - The AllowLegacyExchangeTokens switch returns
Not Set
if tokens haven't been explicitly allowed or blocked in your organization using the AllowLegacyExchangeTokens or BlockLegacyExchangeTokens parameters on the Set-AuthenticationPolicy cmdlet. For more information, see Get the status of legacy Exchange Online tokens and add-ins that use them.
Parameter properties
Type: | SwitchParameter |
Default value: | True |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-Identity
Applicable: Exchange Server 2019, Exchange Server SE, Exchange Online, Exchange Online Protection
The Identity parameter specifies the authentication policy you want to view. You can use any value that uniquely identifies the policy. For example:
- Name
- Distinguished name (DN)
- GUID
Parameter properties
Type: | AuthPolicyIdParameter |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | 0 |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
-TenantId
Applicable: Exchange Online, Exchange Online Protection
This parameter is available only in the cloud-based service.
{{ Fill TenantId Description }}
Parameter properties
Type: | String |
Default value: | None |
Supports wildcards: | False |
DontShow: | False |
Parameter sets
(All)
Position: | Named |
Mandatory: | False |
Value from pipeline: | False |
Value from pipeline by property name: | False |
Value from remaining arguments: | False |
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.