Compartilhar via


AddUserToGroup Method

The AddUserToGroup method of the Users and Groups service adds the user to the specified cross-site group.

Parameters

groupName   A string that contains the name of the cross-site group.

userName   A string that contains the display name of the user.

userLoginName   A string that contains the user name (DOMAIN\User_Alias) of the user.

userEmail   A string that contains the e-mail address of the user.

userNotes   A string that contains notes for the user.

Remarks

The AddUserToGroup method creates a user if the user does not already exist on the site.

Example

The following example adds a user to a cross-site group.

Requirements

Platforms: Microsoft Windows Server 2003

Web Reference: http://Server_Name/[sites/][Site_Name/]_vti_bin/UserGroup.asmx