Back

[SOLVED] Permissions with appwrite cli

  • 0
  • Databases
Arkany
3 Jan, 2024, 15:23

Can someone show me how to pass permission parameter for teams and role in command line. I can find it nowhere in the documentation. I tried this "appwrite databases createCollection --databaseId 6510add9771bcf260b40 --collectionId "unique()" --name test3 --permissions 'create("any")' --permissions 'create("team("651b3769cb0eae4aff5b")' " but it is not working. An example with role also will be nice. Thanks in advance.

TL;DR
Issue: The user is seeking help on how to pass permission parameters for teams and roles using the Appwrite CLI. They have provided a command they tried, but it is not working. Solution: The user received a solution from another user. The correct way to pass permission parameters for teams and roles is shown. Use the following format: `--permissions 'create("any")' 'create("team:651b3769cb0eae4aff5b")'` Additionally, the user thanked the community for their help.
Kenny
3 Jan, 2024, 15:27

Try this instead

--permissions 'create("any")' 'create("team:651b3769cb0eae4aff5b")'

Kenny
3 Jan, 2024, 15:28
Arkany
3 Jan, 2024, 16:05

thanks a lot

Arkany
3 Jan, 2024, 16:55

[solved] Permissions with appwrite cli

Kenny
3 Jan, 2024, 17:03

[SOLVED] Permissions with appwrite cli

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