Class UserManager

Deprecated. The Domain service was deprecated on May 15, 2014, and will be turned off on November 20, 2014. To manage your domain, use the Admin SDK Directory and Admin SDK Reports advanced services instead. See the guide to migrating from Domain service.

This class allows administrators to create, update, retrieve and delete users in a Google Apps domain.

To use this class you have to first enable the Provisioning API on 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());
 }
 

Deprecated methods







Authentication required

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

Signing you in...

Google Developers needs your permission to do that.