Update configure-token-lifetimes.yml - #2006
Conversation
it would´ve saved me time if this would´ve been in the doku, maybe you can verify it and update it. it would also be nice to have some documentation on what´s the default, what´s best practice / recommended. In our case it´s due to issues on linux/mac devices with github.com
|
@microsoft-github-policy-service agree |
|
PehDeh (@PehDeh) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change. |
|
Learn Build status updates of commit b36a9f6: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
docs/identity-platform/configure-token-lifetimes.yml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
|
Can you review the proposed changes? IMPORTANT: When the changes are ready for publication, adding a #label:"aq-pr-triaged" |
There was a problem hiding this comment.
Pull request overview
This PR updates the Microsoft identity platform token lifetime policy how-to by adding a Microsoft Graph PowerShell example for creating, assigning, listing, removing, and deleting a token lifetime policy on a service principal.
Changes:
- Adds a PowerShell walkthrough for token lifetime policy lifecycle operations targeting a service principal.
- Complements the existing HTTP-based steps with an SDK-based approach for administrators who prefer PowerShell.
| # Display the policy | ||
| Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId | ||
|
|
||
| # Assign the token lifetime policy to an app |
| # List the token lifetime policy on the app | ||
| Get-MgServicePrincipalTokenLifetimePolicy -ServicePrincipalId $spId | ||
|
|
||
| # Remove the policy from the app | ||
| Remove-MgServicePrincipalTokenLifetimePolicyByRef -ServicePrincipalId $spId -TokenLifetimePolicyId $tokenLifetimePolicyId |
There was a problem hiding this comment.
"the app" should be replaced by "the service principal" but i can´t modify it atm
. Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
|
Learn Build status updates of commit c336cdb: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
docs/identity-platform/configure-token-lifetimes.yml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
changed "app" to "service principal"
|
Learn Build status updates of commit 5400157: ❌ Validation status: errorsPlease follow instructions here which may help to resolve issue.
docs/identity-platform/configure-token-lifetimes.yml
For more details, please refer to the build report. Note: Your PR may contain errors or warnings or suggestions unrelated to the files you changed. This happens when external dependencies like GitHub alias, Microsoft alias, cross repo links are updated. Please use these instructions to resolve them. |
it would´ve saved me time if this would´ve been in the doku, maybe you can verify it and update it. it would also be nice to have some documentation on what´s the default, what´s best practice / recommended. In our case it´s due to issues on linux/mac devices with github.com