Rank 2: Process
I just created a serverless function on my a Appwrite project, pointing at a source repository (no templates).
I am authenticated as the owner of the project. Trying to run the function from Appwrite Cloud Console UI and getting this error:
Error: app.64f85c5ce3ecabddd466@service.cloud.appwrite.io (role: applications) missing scope (collections.read) at Client.call (/usr/local/server/src/function/node_modules/node-appwrite/lib/client.js:172:31) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Databases.getCollection (/usr/local/server/src/function/node_modules/node-appwrite/lib/services/databases.js:267:16) at async createMigrationCollection (file:///usr/local/server/src/function/node_modules/@franciscokloganb/appwrite-database-migration-tool/dist/lib.esm.js:599:22) at async Module.default (file:///usr/local/server/src/function/functions/database/migrations-create-collection.js:4:3) at async execute (/usr/local/server/src/server.js:141:22) at async /usr/local/server/src/server.js:158:13The function tries to create a collection. How do I add the missing scope to anyone who belongs to the project?
Note: I have global appwrite variables set on the project and the function picks them up correctly. Isn't Appwrite Server SDK supposed to be able to do everything everywhere, why is it missing scopes?