Skip to content

Update configure-token-lifetimes.yml - #2006

Open
PehDeh (PehDeh) wants to merge 3 commits into
MicrosoftDocs:mainfrom
PehDeh:patch-1
Open

Update configure-token-lifetimes.yml#2006
PehDeh (PehDeh) wants to merge 3 commits into
MicrosoftDocs:mainfrom
PehDeh:patch-1

Conversation

@PehDeh

Copy link
Copy Markdown

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

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
@PehDeh

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

@prmerger-automator

Copy link
Copy Markdown
Contributor

PehDeh (@PehDeh) : Thanks for your contribution! The author(s) and reviewer(s) have been notified to review your proposed change.

@learn-build-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit b36a9f6:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
docs/identity-platform/configure-token-lifetimes.yml ❌Error Details

docs/identity-platform/configure-token-lifetimes.yml

  • Line 74, Column 7: [Error: unknown-field] Could not find member 'procedureSection.steps' on object of type 'Array'.

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.

@v-regandowner

Copy link
Copy Markdown
Contributor

Chris Werner (@cilwerner)

Can you review the proposed changes?

IMPORTANT: When the changes are ready for publication, adding a #sign-off comment is the best way to signal that the PR is ready for the review team to merge.

#label:"aq-pr-triaged"
@MicrosoftDocs/public-repo-pr-review-team

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread docs/identity-platform/configure-token-lifetimes.yml
# Display the policy
Get-MgPolicyTokenLifetimePolicy -TokenLifetimePolicyId $tokenLifetimePolicyId

# Assign the token lifetime policy to an app
Comment on lines +136 to +140
# List the token lifetime policy on the app
Get-MgServicePrincipalTokenLifetimePolicy -ServicePrincipalId $spId

# Remove the policy from the app
Remove-MgServicePrincipalTokenLifetimePolicyByRef -ServicePrincipalId $spId -TokenLifetimePolicyId $tokenLifetimePolicyId

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"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-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit c336cdb:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
docs/identity-platform/configure-token-lifetimes.yml ❌Error Details

docs/identity-platform/configure-token-lifetimes.yml

  • Line 74, Column 7: [Error: unknown-field] Could not find member 'procedureSection.steps' on object of type 'Array'.

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-service-prod

Copy link
Copy Markdown
Contributor

Learn Build status updates of commit 5400157:

❌ Validation status: errors

Please follow instructions here which may help to resolve issue.

File Status Preview URL Details
docs/identity-platform/configure-token-lifetimes.yml ❌Error Details

docs/identity-platform/configure-token-lifetimes.yml

  • Line 74, Column 7: [Error: unknown-field] Could not find member 'procedureSection.steps' on object of type 'Array'.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants