Bharatha Aravind
Bharatha Aravind

Reputation: 101

How to get list of users requesting permissions for a file/folder using Google Drive

Is there a way to get list of users requesting permission for a file/folder using Google Drive API.

I have seen API to grant permission to an email address using the API but couldn't find any endpoint to get list of users requesting access to a file/folder.

Ideally I want to fetch get all the users requesting permissions for my shared folders and approve/deny them.

Upvotes: 0

Views: 80

Answers (1)

Jeff Rush
Jeff Rush

Reputation: 912

This is not possible with current Drive API, but you could use Gmail API as a workaround:

  1. list email by labels (add filter to those emails requesting access)
  2. parse it
  3. grant access to users you want with Drive API

Good luck,

Upvotes: 1

Related Questions