Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to revoke permission to file from user #392

Open
selesnow opened this issue Apr 7, 2022 · 1 comment · May be fixed by #394
Open

How to revoke permission to file from user #392

selesnow opened this issue Apr 7, 2022 · 1 comment · May be fixed by #394

Comments

@selesnow
Copy link

selesnow commented Apr 7, 2022

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?

@rvcuenca
Copy link

rvcuenca commented Apr 29, 2022

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants