Back

[SOLVED] Error: User (role: guests) missing scope (users.read)

  • 0
  • Android
  • Tools
  • Apple
  • Self Hosted
  • Users
Matt
9 Dec, 2023, 08:05

I created a function only for get list users, i deploy it and running execution from console and i got this error. But it's working fine if i deploy it on another project with same function code, what caused of this?

TL;DR
Title: [SOLVED] User (role: guests) missing scope (users.read) Messages: User forgot to configure the API key with the necessary scope. Once the API key was properly set, the issue was resolved. The user verified that the key has the required users scope. The problem was not caused by deploying on a different project.
Drake
9 Dec, 2023, 08:29

Maybe the API key is incorrect or not set

Matt
9 Dec, 2023, 08:38

its already set, i can make sure 100%

Matt
9 Dec, 2023, 08:38

all the environment has been set

Matt
9 Dec, 2023, 08:39

its fine if i deploy it on another project

D5
9 Dec, 2023, 08:43

Do you have set the variable?

D5
9 Dec, 2023, 08:44

And does the key have the users scope?

Matt
9 Dec, 2023, 08:48

Thanks, i forgot the API key has scope configuration.

D5
9 Dec, 2023, 08:49

So that solved the issue?

D5
9 Dec, 2023, 08:50

Can I mark this as solved?

Drake
9 Dec, 2023, 16:58

[SOLVED] Error: User (role: guests) missing scope (users.read)

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