There is a need, but I don’t know how to implement it yet. Suppose there is a table to which a number of users have access that can be added. They are combined into several groups that have access to edit different parts of the table. Who has ideas with which tool you can implement the quick sharing of this access, add it to the manual for a long time and is fraught with errors. Here is the code that I want to take as a basis, but manually assigning users and ranges in the script is too capacious, maybe there is a simpler solution.
var spreadsheet = SpreadsheetApp.getActive(); var protection = spreadsheet.getRange('NY1').protect(); protection.setDescription('Диапазон') .removeEditors(['email']); thanks for the help