Skip to content

Commit a6306b4

Browse files
committed
Update switches for legacy Exchange tokens
1 parent cc5317e commit a6306b4

File tree

3 files changed

+52
-4
lines changed

3 files changed

+52
-4
lines changed

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

Lines changed: 26 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
```
@@ -46,6 +47,31 @@ This example returns detailed information for the authentication policy named En
4647

4748
## PARAMETERS
4849

50+
### -AllowLegacyExchangeTokens
51+
This parameter is available only in the cloud-based service.
52+
53+
The AllowLegacyExchangeTokens switch specifies whether legacy Exchange tokens for Outlook add-ins are allowed in the tenant. It also identifies the IDs of the Outlook add-ins that have been allowed or blocked from using legacy tokens. You don't need to specify a value with this switch.
54+
55+
Legacy Exchange tokens include Exchange user identity and callback tokens.
56+
57+
**Important**:
58+
59+
- Blocking legacy Exchange tokens may cause some Microsoft add-ins to stop working in your tenant. These add-ins are being updated to no longer use legacy tokens.
60+
- 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).
61+
62+
```yaml
63+
Type: SwitchParameter
64+
Parameter Sets: (All)
65+
Aliases:
66+
Applicable: Exchange Online, Exchange Online Protection
67+
68+
Required: False
69+
Position: Named
70+
Default value: True
71+
Accept pipeline input: False
72+
Accept wildcard characters: False
73+
```
74+
4975
### -Identity
5076
The Identity parameter specifies the authentication policy you want to view. You can use any value that uniquely identifies the policy. For example:
5177

exchange/exchange-ps/exchange/Remove-AuthenticationPolicy.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,14 @@ Accept wildcard characters: False
6666
### -AllowLegacyExchangeTokens
6767
This parameter is available only in the cloud-based service.
6868
69-
This parameter is reserved for internal Microsoft use.
69+
The AllowLegacyExchangeTokens switch returns your tenant to its previous state before changes were made to allow or block legacy Exchange tokens for Outlook add-ins. Legacy Exchange tokens include Exchange user identity and callback tokens.
70+
71+
This switch applies to your entire tenant even if you specify an authentication policy in the Identity parameter. You don't need to specify a value with this switch.
72+
73+
**Important**:
74+
75+
- The AllowLegacyExchangeTokens switch disregards other authentication policy parameters used in the same cmdlet. We recommend making separate calls for other authentication policy changes.
76+
- 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).
7077
7178
```yaml
7279
Type: SwitchParameter

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

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,14 @@ Accept wildcard characters: False
354354
### -AllowLegacyExchangeTokens
355355
This parameter is available only in the cloud-based service.
356356

357-
This parameter is reserved for internal Microsoft use.
357+
The AllowLegacyExchangeTokens switch specifies whether to allow legacy Exchange tokens for Outlook add-ins. Legacy Exchange tokens include Exchange user identity and callback tokens.
358+
359+
This switch applies to your entire tenant even if you specify an authentication policy in the Identity parameter. You don't need to specify a value with this switch.
360+
361+
**Important**:
362+
363+
- The AllowLegacyExchangeTokens switch disregards other authentication policy parameters used in the same cmdlet. We recommend making separate calls for other authentication policy changes.
364+
- 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).
358365

359366
```yaml
360367
Type: SwitchParameter
@@ -540,7 +547,15 @@ Accept wildcard characters: False
540547
### -BlockLegacyExchangeTokens
541548
This parameter is available only in the cloud-based service.
542549

543-
This parameter is reserved for internal Microsoft use.
550+
The BlockLegacyExchangeTokens switch specifies whether to block legacy Exchange tokens for Outlook add-ins. Legacy Exchange tokens include Exchange user identity and callback tokens.
551+
552+
This switch applies to your entire tenant even if you specify an authentication policy in the Identity parameter. You don't need to specify a value with this switch.
553+
554+
**Important**:
555+
556+
- The BlockLegacyExchangeTokens switch disregards other authentication policy parameters used in the same cmdlet. We recommend making separate calls for other authentication policy changes.
557+
- Blocking legacy Exchange tokens may cause some Microsoft add-ins to stop working in your tenant. These add-ins are being updated to no longer use legacy tokens.
558+
- 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).
544559

545560
```yaml
546561
Type: SwitchParameter
@@ -550,7 +565,7 @@ Applicable: Exchange Online, Exchange Online Protection
550565
551566
Required: False
552567
Position: Named
553-
Default value: True
568+
Default value: False
554569
Accept pipeline input: False
555570
Accept wildcard characters: False
556571
```

0 commit comments

Comments
 (0)