Search code examples
javagoogle-sheetsgoogle-docs-api

How to share a spreadsheet using Java Google Doc API


I have successfully uploaded a spreadsheet to my GDrive.

Now i want that Document to be shared with specific email.
Can anyone give me some tips or some code snippet to achieve this Java.

Thanks Rohith.


Solution

  • To share a file, just give the user read permissions. This describes how to add permissions to a file using either a REST client, or the Google Drive API

    You can also see more details about sharing and permissions here: Manage Sharing