Skip to content
Back

Documentation missing

  • 0
  • Flutter
  • Accounts
  • Cloud
  • Self Hosted
  • Users
Hassanmrwt
13 May, 2023, 15:59

Documentation for server sdks of permissions are missing on site. I was looking for permissions example regarding python server sdk but couldn't find.

TL;DR
User is inquiring about missing documentation for permissions in the server SDK, specifically for Python. They suggest passing multiple user IDs at once when creating permissions. They also mention that the web SDK works, but there should be examples provided for all SDKs. Solution: Create an issue for missing documentation and examples for permissions in the server SDK, specifically for Python.
Maniac_Fighter
13 May, 2023, 16:16

https://appwrite.io/docs/permissions

It's really similar on both sides (server and client ), so you shouldn't have any problem working with it.

Regarding adding an example, The web SDK kinda works but you can create an issue for it (showing examples on all sdks)

Drake
13 May, 2023, 16:19

If you're using a server SDK with API key, the access would depend on the scopes on the API key. For example, if you grant documents.read, it'll have access to all documents.

See https://appwrite.io/docs/keys

Hassanmrwt
13 May, 2023, 16:27

Actually i was creating different permissions for different users. I solved this. But there is something more to i think ... In next message

Hassanmrwt
13 May, 2023, 16:34

When creating permissions user param takes only userId at a time, and was trying to create permissions for group of userIds and for this I have pass every time as permissions=[Permissions.create(role="user:user1id"),Permissions.create(role="user:user1id")] This means that to add creat permission for all users I have to the same process. My suggestion was why not we should pass Permissions.create(role="users:user1id,user2id...usernid")

Drake
13 May, 2023, 16:36

Because parsing it would be more of a pain 😜

You should be able to simplify your code by using an array and a map function

Hassanmrwt
13 May, 2023, 16:37

πŸ˜‚πŸ€£βœ…πŸ‘

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