Note: These cases assume that you are working with a Google Workspace
and the credentials you supply are allowed to view / access Shared Drive
information.
Get a Shared Drive Id
The idbypath endpoint can be used to retrieve the id of a Shared Drive in a Google Workspace. In order to do this the folderPath argument should be the name of the Shared Drive. Additionally, the argument isDrive should be included with the call with a value of true.
Shared Drive Permissions
Passing a shared drive id to the Get ACL method should produce a list of Shared Drive Members with their respective roles.
JWT Connector
If using a JWT of service account, the service account email needs to be added as a member of Shared drive and be given Manager role.