
As said, you can put that into a database and then get the data from it (you update the database at the same time as roles)

You can open a feature request on GitHub issues to suggest being able to get user's role

Thanks. I think I understood. Sure would open one after more thought into this.

There is an owner role

You can list memberships on a team and look at the roles for each member: https://appwrite.io/docs/client/teams?sdk=web-default#teamsListMemberships

But like in the team dashboard, is there a tag that we offer that he is the owner

It's in the roles of the team membership

If you create a team, you get by default the owner role, since you created it, unless something else is specified

We're creating teams on behalf of someone on from the appwrite dashboard directly and not using SDK or rest. Because we're trying to make a multi tenant system and then according to the team roles the users would be able to access that data.

But we can create an empty team without any users then who'd be the owner?

Or maybe I'm using the teams feature in a wrong way

Nobody

You're using it in the wrong way

Hmm

I think that clears up my doubt a lot.

Teams is basically for permissions, if you want to create a "page" or anything else without permissions, then create a database collection, and each page will be a document. Inside the document, you can save all the corresponding data respect to the page. Also if you need specific users to manage the page, you could assign it directly or a team to the page. In other words, basically teams is mainly for permissions (although it can be used too for the first case)

I still think there should be a function directly to call all the roles in the sdk. Reason being: we've an option of updating collection/document security with Role:[team][role]

Teams are used to grant access to multiple people. It's like groups

If we've this granular control for team->role We should also register Roles of a team

Can you give more concrete examples of what kind of access you need?

Sure, I'll drop an example in some time

I think I got a way around using it. But I still think it would be a great great addition to make all roles visible for a team. The reason being, we're telling people to update permissions according to these role in a team. If the roles are not even registered by Appwrite it drops the values of these roles. I think the it would sound more granular at this point but this is just my opinion.

@Steven @D5 you can close this issue and marked as resolved.

Ok

[SOLVED] How to list roles in a team?
Recommended threads
- Appwrite error handling
Is this a good way to handle appwrite errors in nextjs server action ??
- Offline replication with RXDB
Hey there! Trying out apprwrite with rxdb for an offline focussed application. I cannot seem to find on how to set the permissions on a per document level?
- email verification error??
Hey, I'm trying email verificacion with this signup implementation using deep links on iOS, but when creating the account I get this exception: Exception: Erro...
