Moderator
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)
Votes
0
Replies
24
Participants
Unknown
Messages
25
Moderator
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)
Moderator
You can open a feature request on GitHub issues to suggest being able to get user's role
Rank 3: Container
Thanks.
I think I understood.
Sure would open one after more thought into this.
Admin
There is an owner role
Admin
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
Rank 3: Container
But like in the team dashboard, is there a tag that we offer that he is the owner
Admin
It's in the roles of the team membership
Moderator
If you create a team, you get by default the owner role, since you created it, unless something else is specified
Rank 3: Container
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.
Rank 3: Container
But we can create an empty team without any users then who'd be the owner?
Rank 3: Container
Or maybe I'm using the teams feature in a wrong way
Moderator
Nobody
Moderator
You're using it in the wrong way
Rank 3: Container
Hmm
Rank 3: Container
I think that clears up my doubt a lot.
Moderator
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)
Rank 3: Container
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]
Admin
Teams are used to grant access to multiple people. It's like groups
Rank 3: Container
If we've this granular control for team->role
We should also register Roles of a team
Admin
Can you give more concrete examples of what kind of access you need?
Rank 3: Container
Sure, I'll drop an example in some time
Rank 3: Container
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.
Rank 3: Container
@Steven @D5 you can close this issue and marked as resolved.
Moderator
Ok
Moderator
[SOLVED] How to list roles in a team?