Skip to content

Commit 511a8d4

Browse files
committed
Add Get-AuthenticationPolicy switch
1 parent 720a163 commit 511a8d4

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

exchange/exchange-ps/exchange/Get-AuthenticationPolicy.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ For information about the parameter sets in the Syntax section below, see [Excha
2121

2222
```
2323
Get-AuthenticationPolicy [[-Identity] <AuthPolicyIdParameter>]
24+
[-AllowLegacyExchangeTokens]
2425
[-TenantId <String>]
2526
[<CommonParameters>]
2627
```
@@ -44,6 +45,13 @@ Get-AuthenticationPolicy -Identity "Engineering Group"
4445

4546
This example returns detailed information for the authentication policy named Engineering Group.
4647

48+
### Example 3
49+
```powershell
50+
Get-AuthenticationPolicy -AllowLegacyExchangeTokens
51+
```
52+
53+
In Exchange Online, this example specifies whether legacy Exchange tokens for Outlook add-ins are allowed in the organization.
54+
4755
## PARAMETERS
4856

4957
### -Identity
@@ -66,6 +74,28 @@ Accept pipeline input: False
6674
Accept wildcard characters: False
6775
```
6876
77+
### -AllowLegacyExchangeTokens
78+
This parameter is available only in the cloud-based service.
79+
80+
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.
81+
82+
Legacy Exchange tokens include Exchange user identity and callback tokens.
83+
84+
**Important**: Legacy Exchange tokens will eventually be blocked by default in all cloud-based organizations. For more information, see [Nested app authentication and Outlook legacy tokens deprecation FAQ](https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens#what-is-the-timeline-for-shutting-down-legacy-exchange-online-tokens).
85+
86+
```yaml
87+
Type: SwitchParameter
88+
Parameter Sets: (All)
89+
Aliases:
90+
Applicable: Exchange Online, Exchange Online Protection
91+
92+
Required: False
93+
Position: Named
94+
Default value: True
95+
Accept pipeline input: False
96+
Accept wildcard characters: False
97+
```
98+
6999
### -TenantId
70100
This parameter is available only in the cloud-based service.
71101

exchange/exchange-ps/exchange/Set-AuthenticationPolicy.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,7 @@ This switch applies to the entire organization. Although the Identity parameter
370370
**Important**:
371371

372372
- Apart from the Identity parameter, this switch disregards other authentication policy parameters used in the same command. We recommend running separate commands for other authentication policy changes.
373+
- It might take up to 24 hours for the change to take effect across your entire organization.
373374
- Legacy Exchange tokens will eventually be blocked by default in all cloud-based organizations. For more information, see [Nested app authentication and Outlook legacy tokens deprecation FAQ](https://learn.microsoft.com/office/dev/add-ins/outlook/faq-nested-app-auth-outlook-legacy-tokens#what-is-the-timeline-for-shutting-down-legacy-exchange-online-tokens).
374375

375376
```yaml

0 commit comments

Comments
 (0)