You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ensure a bucket and team have been created and the team given create access to the bucket
Register a user using the appwrite npm library
Sign user in
Add user to team manually through cloud.appwrite.io
Use the appwrite npm library to upload a file to the bucket with update, read, and delete permissions specifically for that user ID
Upload a file manually through cloud.appwrite.io without any permissions
I did manually upload the same file twice through cloud to see how appwrite would handle it, but I don't know if that would effect it.
馃憤 Expected behavior
The file added via user should be restricted to that user with the delete, update, and read permissions.
The manual file should not have any permissions on it whatsoever.
馃憥 Actual Behavior
The snippet below shows permissions have been added for the last user to upload a file via the npm library. In fact, I deleted the user to see if that would fix it and it did not, so a user with that ID doesn't exist anymore.
@BlackyWolf, thanks for creating this issue! 馃檹馃徏 What you're describing seems like the expected behavior as described by our docs:
If you create a resource using a Client SDK without explicit permissions, the creator will be granted read, update, and delete permissions on that resource by default.
If you don't want to grant the user permissions, you may pass an empty array.
Is there anything else you need or can this be closed?
I apologize for not being clear. I am manually uploading a file using the cloud.appwrite.io UI and it is being assigned a specific user's permissions from when I uploaded a file using a local react app. When I upload the file through the cloud admin UI I leave the permissions blank, so I'm trying to figure out how permissions are getting assigned.
馃憻 Reproduction steps
appwrite
npm libraryappwrite
npm library to upload a file to the bucket with update, read, and delete permissions specifically for that user IDI did manually upload the same file twice through cloud to see how appwrite would handle it, but I don't know if that would effect it.
馃憤 Expected behavior
The file added via user should be restricted to that user with the delete, update, and read permissions.
The manual file should not have any permissions on it whatsoever.
馃憥 Actual Behavior
The snippet below shows permissions have been added for the last user to upload a file via the npm library. In fact, I deleted the user to see if that would fix it and it did not, so a user with that ID doesn't exist anymore.
馃幉 Appwrite version
Appwrite Cloud
馃捇 Operating system
Windows
馃П Your Environment
Hosting: Cloud Appwrite 1.5.7
NPM: appwrite@^15.0.0
Framework: React@^18.2.0 w/ Vite@^5.2.0
IDE: VS Code 1.90
馃憖 Have you spent some time to check if this issue has been raised before?
馃彚 Have you read the Code of Conduct?
The text was updated successfully, but these errors were encountered: