Best answer

Google Drive: Share With Specific Users

  • 11 September 2020
  • 5 replies
  • 1121 views

Userlevel 1

Hello,

I am currently using Zapier to create a new Google Drive folder as a custom workspace for 2 or more users.

I can create the Drive Folder, but I’m unable to limit sharing to just those two users.  Options are limited to anyone-with-link or my-domain-only.  Limiting access on a per-user basis is critical for us.

Anyone know of a way to add specific users via a Zap?  I’m not technical enough to manage this directly through Google’s API.

Thank you!

 

icon

Best answer by Wemakefuture 11 September 2020, 06:01

View original

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

5 replies

Userlevel 6
Badge +7

Are you a Gsuite user?

Userlevel 1

Yes — I’m using a corporate GSuite account.  The user I’m using is the org Admin with full admin rights.

Userlevel 6
Badge +7

So far it is right what you said, only org or internet can be shared.

But you can easily do it with js or python in Zapier.

https://developers.google.com/drive/api/v3/manage-sharing feel free to start a PM.

@steph.n can you add selecting user IDs  for sharing to the Apps Dev. list, please?

Userlevel 1

Ah ok thank you -- that’s good to know.

Userlevel 1

I was gonna try to do it with a custom Drive API webhook request in zapier

 

This is the parameters to share it publicly 

https://www.googleapis.com/drive/v3/files/"Spreadsheet_ID"/permissions?role=reader&type=anyone&key="API Key"

But zapier is throwing me an error to log in.

 

As long as the API supports sharing to specific users - which it does, it’s possible to do it with a custom webhook request.

Question is how to get rid of the login error..