Skip to content

Help: How to get user ID when using a PAT? #379

Description

Hi all, sorry this is mostly a request for help.

Issue Description

Is it possible to get the User ID that the Personal Access Token is for when authenticated with a PAT? I've seen that the Profiles API is unavailable to PAT-authenticated requests.

Thanks!

Activity

  1. stephenmichaelf commented on Apr 2, 2020

    @stephenmichaelf
    Member

    Andrew Hathaway (@andrewhathaway) After you establish the connection the HTTP response headers should have this.

  2. andrewhathaway commented on Apr 6, 2020

    @andrewhathaway
    Author

    Which header specifically? I can see a few with GUIDs. x-vss-userdata is {guid}:{emailAddr} and there's also x-vss-e2eid which is a different guid to the one found in userdata.

  3. andrewhathaway commented on Apr 11, 2020

    @andrewhathaway
    Author

    Closing as I can confirm that the guid in the x-vss-userdata header is the user Id! Thanks for the pointer :)

  4. ankitbko commented on Dec 17, 2020

    @ankitbko
    Member

    Andrew Hathaway (@andrewhathaway) how did you read this header? Can you post a snippet?

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

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions