Skip to content

file.setOwner(new_owner) -> Action not allowed #1

Description

@Mirri360

I'm trying to adapt this code for my use as I have several hundred files that I need to transfer ownership on. I have adapted the search and listed the names to verify that I have the correct files in my files list. However, when I tried adding either of the addEditor or the setOwner commands, I got the "Action not allowed" error message. I changed the manifest as directed by the documentation by adding the following code to the manifest. I don't intend to publish. Is there something else I need to do to make those commands work?
"oauthScopes": [ "https://www.googleapis.com/auth/drive" ]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions