Solved

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

  • 28 June 2023
  • 1 reply
  • 66 views

Badge +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.

icon

Best answer by jason 28 June 2023, 17:31

View original

1 reply

Userlevel 4
Badge +7

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. 

Reply