Skip to content

Commit 033b8e6

Browse files
authored
Merge pull request #5002 from OfficeDev/davech-6
[Outlook](legacy tokens) Add information on how to get token status
2 parents bd0c51d + 5a59ccb commit 033b8e6

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

docs/outlook/turn-exchange-tokens-on-off.md

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: Turn legacy Exchange Online tokens on or off
44
ms.service: microsoft-365
55
ms.subservice: add-ins
66
ms.topic: how-to
7-
ms.date: 01/06/2024
7+
ms.date: 01/24/2025
88
---
99

1010
# Turn legacy Exchange Online tokens on or off
@@ -30,7 +30,7 @@ To turn legacy tokens off, run the following command.
3030

3131
`Set-AuthenticationPolicy –BlockLegacyExchangeTokens -Identity "LegacyExchangeTokens"`
3232

33-
The command turns off legacy tokens for the entire tenant. If an Outlook add-in requests a legacy token, it won’t be issued a token.
33+
The `-Identity` parameter must be set to `LegacyExchangeTokens`. The command turns off legacy tokens for the entire tenant. If an Outlook add-in requests a legacy token, it won’t be issued a token.
3434

3535
> [!NOTE]
3636
> If you've confirmed that your tenant is not using any add-ins that require legacy Exchange Online tokens, we recommend you turn off legacy Exchange Online tokens as a security best practice. For more information on how to determine if you tenant has add-ins using legacy tokens, see the [Nested app authentication and Outlook legacy tokens deprecation FAQ](faq-nested-app-auth-outlook-legacy-tokens.md).
@@ -41,14 +41,33 @@ To turn legacy tokens on, run the following command. It can take up to 24 hours
4141

4242
`Set-AuthenticationPolicy –AllowLegacyExchangeTokens -Identity "LegacyExchangeTokens"`
4343

44-
You’ll only be able to turn tokens back on until June 2025 when all legacy tokens in all tenants will be forced off. For more information, see the [Nested app authentication and Outlook legacy tokens deprecation FAQ](https://aka.ms/NAAFAQ).
44+
The `-Identity` parameter must be set to `LegacyExchangeTokens`. You’ll only be able to turn tokens back on until June 2025 when all legacy tokens in all tenants will be forced off. For more information, see the [Nested app authentication and Outlook legacy tokens deprecation FAQ](https://aka.ms/NAAFAQ).
4545

4646
> [!NOTE]
4747
> It might take up to 24 hours for the change to take effect across your entire organization. Legacy Exchange tokens issued to Outlook add-ins before token blocking was implemented in your organization will remain valid until they expire.
4848
4949
> [!NOTE]
5050
> If you turn on legacy Exchange Online tokens, then they won't be turned off in February 2025 when Microsoft turns them off for all tenants. For more information, see [Nested app authentication and Outlook legacy tokens deprecation FAQ](faq-nested-app-auth-outlook-legacy-tokens.md).
5151
52+
## Get the status of legacy Exchange Online tokens
53+
54+
To view the status of legacy Exchange Online tokens, run the following command.
55+
56+
`Get-AuthenticationPolicy -AllowLegacyExchangeTokens`
57+
58+
The command returns whether `AllowLegacyExchangeTokens` is true or false, such as the following example in PowerShell.
59+
60+
```console
61+
PS C:\> Get-AuthenticationPolicy -AllowLegacyExchangeTokens
62+
AllowLegacyExchangeTokens: False
63+
Allowed: []
64+
Blocked: []
65+
PS C:\>
66+
```
67+
68+
> [!NOTE]
69+
> The previous command is the only way to view legacy token status. Other commands, such as `Get-AuthenticationPolicy | Format-Table -Auto Name` don't return the legacy token status.
70+
5271
## See also
5372

5473
- [Nested app authentication and Outlook legacy tokens deprecation FAQ](https://aka.ms/NAAFAQ)

0 commit comments

Comments
 (0)