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

Organizer and FileOrganizer roles missing for share #1129

Open
covuworie opened this issue Nov 22, 2021 · 0 comments
Open

Organizer and FileOrganizer roles missing for share #1129

covuworie opened this issue Nov 22, 2021 · 0 comments

Comments

@covuworie
Copy link

Hi, great repo @odeke-em - it's very useful and packed full of excellent features!

I noticed the following when I tried sharing a drive using the following command:

drive share -emails <email> -role organizer -type user <directory>

The email was actually given the role of reader when I checked the permissions. Looking at the code it seems that the organizer and fileOrganizer roles that are described in the Google Drive Roles are missing.

Unfortunately using the owner permission instead is not a workaround as I get the following message:

share err <directory>: googleapi: Error 400: Bad Request. User message: "Sorry, cannot transfer ownership to <email>. Ownership can only be transferred to another user in the same organization as the current owner.", ownershipChangeAcrossDomainNotPermitted

This makes sense as the owner of the drive is a service account which is created under the gserviceaccount.com domain.

So the best I can do is to assign the writer permission. However, that means I will not have some of the privileges described in the Google Drive Roles.

Thanks in advance.

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

No branches or pull requests

1 participant