Hey,
When my board view loads, I’m calling monday api for info about me and board. If the user is an account viewer, I see in the chrome dev console there was an error, but my code never gets it (not with await and not with .then / .catch). The error in the console is:
POST https://eazyapps.monday.com/v2 403
Error: There was an error in response from monday.com graphql API
And if I look at the http response body in the chrome dev console, I see:
{"error_code":"UserUnauthroizedException","status_code":403,"error_message":"The user is unauthorized to use the api_v2","error_data":{"user_id":15943487}}
Related question - I’m trying to figure out if the current user who loaded my board view is a viewer or guest, what’s the best way of doing that? If the api call will return the error above to me, that will be the preferred way I think, since I don’t want to ask for more scopes than needed when installing my app (i.e. users:read).
Thanks,
Ronen