PSAddUsersToGroups Method

Description

Adds one or more users to all of the specified Microsoft Office Project Server 2003 security groups.

Syntax

<Request>
   <PSAddUsersToGroups>
      <PSUsers>
         <PSUserName></PSUserName>
         <PSUserName></PSUserName>
      </PSUsers>
      <PSGroups>
         <PSGroupName></PSGroupName>
         <PSGroupName></PSGroupName>
      </PSGroups>
   </PSAddUsersToGroups>
</Request>

Parameters

PSUsers

Required. The wrapper tag for the PSUserName elements, which designate the users to add. At least one PSUserName is required.

PSGroups

Required. The wrapper tag for the PSGroupName elements, which designate the groups to which the users are added. At least one PSGroupName is required.

Return Value

If the request is successful, PSAddUsersToGroups returns a successful HRESULT and STATUS.

If any requested additions of a user to a group fail, the PDS returns an error code for each failure. Any failures result in a non-zero STATUS code. Processing continues for all of the additions of users to groups, even after a failure.

<Reply>
   <HRESULT></HRESULT>
   <STATUS></STATUS>
   <UserName></UserName>
   <Errors>
      <Error>
         <PSGroupName></PSGroupName>
         <PSUserName></PSUserName>
         <ErrorCode></ErrorCode>
      </Error>
   </Errors>
</Reply>

Remarks

The currently logged-on user must have the appropriate Project Server permission in order to see the Manage Users and Groups page and create new users; the PDS checks to determine whether that user has been granted PermissionID 710.