Skip to main content
scott_ecosystem
Rookie
September 1, 2023
Solved

Find the id of the user who granted OAuth2 access

  • September 1, 2023
  • 3 replies
  • 266 views

I’m currently trying to understand whether there’s a way to determine which user granted the OAuth token I’m using in the request?

I’ve found the `API Token Details`, but that appears to only expose company-level information.

Could I achieve this by introspecting the JWT claims? (e.g. `sub`?)
 

Best answer by jason

Hi Scott, 

In short - no. JWTs are authorized by a teammate, but the token itself is not linked to a teammate in any way - it’s a company-level resource. 

It’s worth noting that only your global admins can authorize OAuth tokens to be created, so that should narrow down your search.

3 replies

jason
jasonAnswer
Fronteer
September 1, 2023

Hi Scott, 

In short - no. JWTs are authorized by a teammate, but the token itself is not linked to a teammate in any way - it’s a company-level resource. 

It’s worth noting that only your global admins can authorize OAuth tokens to be created, so that should narrow down your search.

manish
Conversationalist
September 12, 2025

hey Jason, is this answer still valid today because i happen to run into same blocker?

jason
Fronteer
September 12, 2025

Yes - still valid today. OAuth access is still granted at a “company” level, so it can not presently be used identify any one teammate. 

I did raise this as a feature request at https://front.ideas.aha.io/ideas/PRD-I-9103 - I’d suggest heading there and giving it a +1 vote to register your interest, and leave any relevant comments about why it would be a useful feature for your team!