GroupsApp.Role.OWNER




function myGroupsApp() {
  var email = Session.getActiveUser().getEmail();  
  var strDomain = email.split(/@/);
  var supportEmail = 'support@' + strDomain[1];
  var group = GroupsApp.getGroupByEmail(supportEmail);
  if (group.getRole(email) == GroupsApp.Role.OWNER) {
    Logger.log('These are the group owners ');
  }
}

댓글

이 블로그의 인기 게시물

Share a Google Form as “View Only”

Advanced Drive Service in Apps Script.