Skip to content

Commit a83bfab

Browse files
authored
Merge pull request #108532 from NamsooChoi-MSFT/patch-3
The script needs more permission scope
2 parents d011baf + 635901f commit a83bfab

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/active-directory/develop/configure-token-lifetimes.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ To get started, download the latest [Microsoft Graph PowerShell SDK](/powershell
2929
In the following steps, you'll create a policy that requires users to authenticate less frequently in your web app. This policy sets the lifetime of the access/ID tokens for your web app.
3030

3131
```powershell
32-
Connect-MgGraph -Scopes "Policy.ReadWrite.ApplicationConfiguration"
32+
Connect-MgGraph -Scopes "Policy.ReadWrite.ApplicationConfiguration","Policy.Read.All","Application.ReadWrite.All"
3333
3434
# Create a token lifetime policy
3535
$params = @{
@@ -76,4 +76,4 @@ GET https://graph.microsoft.com/v1.0/policies/tokenLifetimePolicies/4d2f137b-e8a
7676
```
7777

7878
## Next steps
79-
Learn about [authentication session management capabilities](../conditional-access/howto-conditional-access-session-lifetime.md) in Azure AD Conditional Access.
79+
Learn about [authentication session management capabilities](../conditional-access/howto-conditional-access-session-lifetime.md) in Azure AD Conditional Access.

0 commit comments

Comments
 (0)