Share via

DevOps - Updating Token validTo Date

Anonymous
2024-09-06T14:04:03+00:00

Hello,

I have created an application in Azure Portal that gives me an access token to the REST api of dev ops: https://vssps.dev.azure.com/$organization/_apis/tokens/pats?api-version=7.1-preview.1
I
 am able to successfully use the token to gain access to my tokens and return the information. I would like to run a powershell script to update the validTo date of each PAT in dev ops. I am unable to find the correct permission in Azure Portal to allow me to do that.

The only permissions that pop up for tokens are: vso.tokenadministration and vso.tokens. Neither of these allow me to write the new validTo date to the dev ops api and i believe i need a different permission to do so. I cannot find "vso.token_manage" in available permissions, either. Any workarounds?

Thank you,

Microsoft Edge | Other | Windows 11

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

3 answers

Sort by: Most helpful
  1. Anonymous
    2024-09-06T14:43:58+00:00

    Glad to help!

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2024-09-06T14:43:24+00:00

    Thank you

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2024-09-06T14:37:12+00:00

    Hi, I am Dave, I will help you with this.

    I apologize, Community is just a consumer forum, due to the scope of your question can you please post this question to our sister forum on Microsoft Q&A (The System Administrators and IT Pro Forum).

    Over there you will have access to a host of System Administrators and Azure experts and will get a knowledgeable and quick answer to this question.

    https://docs.microsoft.com/en-us/answers/index....

    Was this answer helpful?

    0 comments No comments