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

[Bug] Add-GSDrivePermission fails when transferring ownership #80

Closed
scrthq opened this issue Aug 24, 2018 · 0 comments
Closed

[Bug] Add-GSDrivePermission fails when transferring ownership #80

scrthq opened this issue Aug 24, 2018 · 0 comments
Assignees
Labels

Comments

@scrthq
Copy link
Member

scrthq commented Aug 24, 2018

Describe the bug
Transferring ownership of Drive files fails due to the TransferOfOwnership parameter being named that instead of TransferOwnership. This causes the $request object to not see it as a property to add and subsequently ignores it.

This should work:

Add-GSDrivePermission -User $from -FileId $id -Role Owner -Type User -EmailAddress $to -SendNotificationEmail -TransferOfOwnership

but currently throws an error stating that TransferOwnership needs to be set when setting a new user as Owner.

Environment (please complete the following information):

  • OS: Windows 10 1803, macOS
  • PowerShell Version: All
  • PSGSuite Version: 2.13.0
@scrthq scrthq added the bug label Aug 24, 2018
@scrthq scrthq self-assigned this Aug 24, 2018
scrthq added a commit that referenced this issue Aug 24, 2018
@scrthq scrthq closed this as completed in 5b4f6e9 Aug 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant