box / box-python-sdk

Box SDK for Python
http://opensource.box.com/box-python-sdk/
Apache License 2.0
421 stars 215 forks source link

Prevent files from moving #859

Closed Sevillesilveira closed 11 months ago

Sevillesilveira commented 11 months ago

I am able to lock files using python-sdk code but the files after getting locked can still be moved from one folder to another. Is there any loc to prevent this from happening.

congminh1254 commented 11 months ago

Hi @Sevillesilveira

From the document: This prevents the item from being moved, renamed, or otherwise changed by anyone other than the user who created the lock.

So I think the lock is used for preventing other users do any changes for a shared folder, but as an owner of the lock, you can still make the changes. I think there is nothing you can do to prevent the owner of the file do changes on the file.

Best, Minh

Sevillesilveira commented 11 months ago

Users still can remove the lock for the files if they have editor permission

congminh1254 commented 11 months ago

Hi @Sevillesilveira

I have just confirmed with the team and they provided this Understanding Collaborator Permission Levels .

So the lock prevents the item from being moved, renamed, or otherwise changed, until someone have the permission remove the lock.

Sevillesilveira commented 11 months ago

Hi @congminh1254

Thank you for the support.