Back

How to change role of an user?

  • 0
  • Users
  • Web
shofol
16 Feb, 2023, 15:30

I have implemented createOAuth2Session with gmail. The login and user creation is doing fine. But, when this user is trying to create a new account, I am getting this error. How to change the role of this user to admin or something who can create an account? Can I do it in console?

User (role: guests) missing scope (account)

TL;DR
The user is experiencing an issue where the browser may not be setting or sending the cookie. They mention using both the frontend and appwrite on localhost and ask why there is a custom domain problem. A suggested solution is provided in the form of a GitHub link that might help troubleshoot the issue. The user also mentions that they checked the current session and it is working. They have implemented createOAuth2Session with Gmail, and the login and user creation are successful. However, when this user tries to create a new account, they receive an error about changing the role of the user to admin or a user with the ability to create an account
shofol
16 Feb, 2023, 15:41

I checked the current session too and it's working

shofol
16 Feb, 2023, 15:41

@Moderator any help?

joeyouss
16 Feb, 2023, 15:56

Hi there 👋

joeyouss
16 Feb, 2023, 15:57

So, I think this error implies that the user session was not detected by Appwrite.

joeyouss
16 Feb, 2023, 16:18
shofol
18 Feb, 2023, 04:38

@joeyouss, I am using both the frontend and appwrite on localhost. Then why would there be custom domain problem?

Drake
18 Feb, 2023, 06:03

The browser may not be setting or sending the cookie

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