how to programatically add access permisson like addEditors() and addViewers() in google spreadsheet through java code

89 views Asked by At

currently am working on google spreadsheets,i have create a login using java swing, where in the user enters the name and password.. Now based on the user i want to give VIEW and EDIT permission for specified user.. Please help me on how to implement it in google spreadsheet.. Particularly help me with addViewers(user) and addEditors(user),and step by step procedure...

1

There are 1 answers

0
Gerardo On

Here you can find the documentation on Drive API insert permissions https://developers.google.com/drive/v2/reference/permissions/insert

You can find the different parameters like: write, read, owner for the method permission.insert.