Back

Scopes enter no Short hand

  • 0
  • Tools
Aarush Acharya
14 Jun, 2024, 19:03

sessions.write, users.read, users.write, teams.read, teams.write, databases.read, databases.write, collections.read, collections.write, attributes.read, attributes.write, indexes.read, indexes.write, documents.read, documents.write, files.read, files.write, buckets.read, buckets.write, functions.read, functions.write, execution.read, execution.write, locale.read, avatars.read, health.read, providers.read, providers.write, messages.read, messages.write, topics.read, topics.write, subscribers.read, subscribers.write, targets.read, targets.write, rules.read, rules.write, migrations.read, migrations.write, vcs.read, vcs.write, assistant.read

In wish to give the server key all the scopes

appwrite projects createKey --projectId <My project ID> --name "Appwrite Server Key" --scopes sessions.write, users.read, users.write, teams.read, teams.write, databases.read, databases.write, collections.read, collections.write, attributes.read, attributes.write, indexes.read, indexes.write, documents.read, documents.write, files.read, files.write, buckets.read, buckets.write, functions.read, functions.write, execution.read, execution.write, locale.read, avatars.read, health.read, providers.read, providers.write, messages.read, messages.write, topics.read, topics.write, subscribers.read, subscribers.write, targets.read, targets.write, rules.read, rules.write, migrations.read, migrations.write, vcs.read, vcs.write, assistant.read

using this command is there a shorter way to do it

TL;DR
Developers want to grant a server key all available scopes in Appwrite. The command in the message includes all scopes listed individually. To make it shorter, developers can group the scopes by their category (like users, teams, databases, etc.) and use wildcards for each category. This allows for a more concise command.
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