Skip to content

Unable to list files in shared folder using service account #463

@valkx

Description

@valkx

I am trying to list files in a shared folder on a Shared Drive that has been shared with me.

I authenticate with a service account that is given 'Content Manager' permissions on the folder. the folder is a subfolder of the shared drive. Autentication is successful.

When calling drive_ls for this specific folder. drive_ls(as_id(shared_drive_id)) the response is as below (actual drive id's are removed from the response):

Error in map():
ℹ In index: 1.
Caused by error in .f():
! Client error: (404) Not Found
Shared drive not found:
• message: Shared drive not found:
• domain: global
• reason: notFound
• location: driveId
• locationType: parameter

This looks very much like #154 but is different because a service account is used and I keep getting the message shared drive not found, including the shared drive's id, which was not specified in the call to drive_ls.

Any ideas on this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions