I wrote a simple apps script that reads users from a sheet and then adds them to one or more default groups in my organization
I'd like to set their Post properties to Not allowed - those groups must be read only for end users
can't find on G Suite Reference the right way - if existing...
this is the snippet of code I'm using to add users to groups:
function addGroupMember(user, group) {
var member = {
email: user,
role: 'MEMBER'
};
member = AdminDirectory.Members.insert(member, group);
}
thank you in advance