Back

How to define member roles in the console

  • 0
  • Tools
  • Cloud
Abdulramon Jemil
25 Jun, 2023, 06:20

There's a Role.member() API in appwrite sdks for permission roles. Is it possible to define this from the console UI? Right now, there's no way to do it.

Also, there's no way (in the console) to specify permissions for verified users in particular. There's only settings for users generally

TL;DR
The user is asking how to define member roles in the console. They mention that the format `member:membershipId` should be used for members and `user:userId/status` for verified users. It is unclear where the roles need to be defined. Another user suggests using the "Select users" option on the console's permissions part. However, there is no way to define these roles directly from the console UI. Additionally, there is no way to specify permissions for verified users specifically, only for users in general.
Bouahaza
25 Jun, 2023, 10:41

You can use "Select users" on permissions part from console

Drake
25 Jun, 2023, 14:39

define this from the console UI

Define it where? When creating the team/membership? Or creating a document?

Isn't there a custom permission option?

Abdulramon Jemil
26 Jun, 2023, 04:15

Yes there's a custom permission option, but the instructor there says it must be in the format user:userId or team:teamId/role, at least on appwrite cloud. Don't know if it has been updated in the source (since appwrite cloud isn't running the latest version).

But for members, the format member:membershipId has to be used. And for verified users, the format user:userID/status has to be used.

Maybe I should see if the console UI accepts those formats too anyway.

Drake
26 Jun, 2023, 11:55

You can put member:membershipId or user with status as well

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more