Web Developer
I am currently self-hosting Appwrite in my local machine, deployed using docker script in the website. I also installed appwrite-cli through npm.
I am trying to create a project programmatically. I am aware that I can create a project in the appwrite-cli using appwrite init project and following the setup. I am successful in creating a project that way.
However, I want to create the project through the command appwrite projects create but I am getting the error:
AppwriteException [Error]: (my email address) (role: users) missing scopes (["projects.write"])
The email address that I am using is the owner, and should be the "admin" as this is the only account I created in the Console and in Appwrite. I also have the "Owner" role in the Personal projects landing page (organization)
I tried to follow the Network in Console to use the same cookie to call a POST query in Postman, but that also gives me the missing scope issue.
What am I doing wrong with my appwrite projects create call? Am I missing out something to make my account into an admin/owner? Do I have to add the projects.write scope somewhere? Is there a gap with the self-hosted and the Cloud version?
Thanks