googledrive icon indicating copy to clipboard operation
googledrive copied to clipboard

How to revoke permission to file from user

Open selesnow opened this issue 2 years ago • 1 comments

Hi!

Could you help me, for example i can share my file:

drive_share(file = 'jhfkndksfb98b9', role = 'writer', type = 'user', emailAddress = '[email protected]' )

And i need to revoke this permission from this user at next time. How i can do it?

selesnow avatar Apr 07 '22 07:04 selesnow

I am facing a similar issue. Instead of revoking, I would like to change the permission role from "writer" to "reader". However, no changes occurred. When I ran drive_share, the output says that the permission role changed correctly. But when I ran drive_reveal on the same file the permissions$role is still a "writer".

From:

drive_share(file = 'jhfkndksfb98b9', role = 'writer', type = 'user', emailAddress = '[email protected]' )

to

drive_share(file = 'jhfkndksfb98b9', role = 'user', type = 'user', emailAddress = '[email protected]' )

The output indicated that the change is successful:

Permissions updated:
* role = reader
* type = user
For file:
* jhfkndksfb98b9 <id: xxx-xxxxxxxxxxxxxxx-xxx>

However, when I run

drive_reveal(file = 'jhfkndksfb98b9', what = "permissions")$permissions_resource

the target emailAddress has still the permission that says writer.

rvcuenca avatar Apr 29 '22 08:04 rvcuenca