
Hey for one of my use cases I need to get my current logged in user's team. But by default the scope to read the team is not added.
const teams = appwriteClient.teams;
const myTeams = await teams.list();
The above code returns :
api-1 | message: 'User (role: guests) missing scope (teams.read)',
api-1 | code: 401,
api-1 | type: 'general_unauthorized_scope',
api-1 | version: '1.6.2'
api-1 | }
How do I add the teams.read scope. I'm using the node-sdk
with google oauth2.
I can add scopes, but these are internal google oauth scopes, not appwrite ones.
Recommended threads
- Error setting postman body
Good evening, anyone has an idea on how to pass body to appwrite function using postman? this is how I've passed it : { "providerName": "adamu" } and I ke...
- Attributes stuck at processing
Added some attributes to my collection, and they are stuck in processing for over half an hour. Project ID: 684d0539002c85ded9c5
- Attributes stuck at processing
I created a collection and after adding 4 attributes, the next ones are stuck in processing state since a long time. My project id: 6851551f0037d6ae5a24
