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
- Payment problems
Its really beginning to frustrate me, last month I was on Pro plan on Appwrite cloud, I chose the option to downgrade next month(this one) to Free plan, and tha...
- Function executions via custom domain fr...
Aplogies if this was asked already. I'm self-hosting 1.9 on a self-hosted instance of Dokploy. I've made the necessary adjustments to the original compose file ...
- Running into a server error on my self-h...
Hey everyone, I'm running into a server error on my self-hosted setup after updating to v1.19.0. The issue only happens during user creation and deletion. Ever...