Domain Service

This service allows Google Apps domain administrators to create and modify groups, users, or nicknames. To use this service, you must first enable the Provisioning API for your domain.

// This example creates a new group and adds all of the domain's users to it.
var group = GroupsManager.createGroup('testgroup', 'my new group');
var users = UserManager.getAllUsers();
for (var i in users) {
  group.addMember(users[i].getEmail());
}

Classes

NameBrief description
DomainGroupA Google Apps Domain group.
DomainNicknameA Google Apps Domain nickname.
DomainUserA Google Apps Domain user.
GroupsManagerThis class allows administrators to create, update, retrieve and delete groups in a Google Apps domain.
NicknameManagerThis class allows administrators to create, update, retrieve and delete nicknames in a Google Apps domain.
PermissionLevelEnumeration of the permission levels for Google Groups management operations.
UserManagerThis class allows administrators to create, update, retrieve and delete users in a Google Apps domain.

Class DomainGroup

Class DomainNickname

Class DomainUser

Class GroupsManager

Class NicknameManager

Class PermissionLevel

Class UserManager

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.