Skip to main content
Answer

received "you don't have access to the resource of this teammate" even the share individaul resource with API is turned on

  • June 28, 2023
  • 1 reply
  • 101 views

Forum|alt.badge.img+2

I tried to use API to access the individual inboxes through the URL included in the teammate object, however I keep getting “you don’t have access to the resources of this teammate.”.

 

I am aware of https://help.front.com/t/80d8nt/api-requests-failing-for-private-resources and have done the things suggested. Still keep getting this message.

Best answer by jason

Hi Rob, It might be the case that the API token being used is only scoped for access to shared resources, and can not access individual resources. You can verify this by decoding the API token and checking the “scopes” of the token (you can use a tool like https://jwt.io/, or use a library locally such as jsonwebtoken).

In a case where a token has been scoped to access individual resources, it will have a scope array that includes the value private:*

If you’d prefer the Front team to help verify on your behalf, just send a message to our support team noting the specific endpoint you used and the time you sent the request, and they can give you a definitive answer. 

1 reply

jason
Forum|alt.badge.img+8
  • Fronteer
  • Answer
  • June 28, 2023

Hi Rob, It might be the case that the API token being used is only scoped for access to shared resources, and can not access individual resources. You can verify this by decoding the API token and checking the “scopes” of the token (you can use a tool like https://jwt.io/, or use a library locally such as jsonwebtoken).

In a case where a token has been scoped to access individual resources, it will have a scope array that includes the value private:*

If you’d prefer the Front team to help verify on your behalf, just send a message to our support team noting the specific endpoint you used and the time you sent the request, and they can give you a definitive answer.