addUsersToGroup

Add one or more users to a domain’s group.

Location

/services/webservices/system/admin/user/operations/

Request Elements

domainName: The domain name.

groupName: The group name.

userNames: List of user names (and optionally domains) to add to the group.

Request Example

<user:addUsersToGroup xmlns:user="http://www.compositesw.com/services/system/admin/user">
  <user:domainName>composite</user:domainName>
  <user:groupName>production-3</user:groupName>
  <user:userNames>
<user:entry>
      <user:name>jean</user:name>
      <user:domain>composite</user:domain>
    </user:entry>
<user:entry>
      <user:name>kim</user:name>
      <user:domain>composite</user:domain>
    </user:entry>
</user:userNames>
</user:addUsersToGroup>

Response Elements

N/A

Faults

NotAllowed: If the group cannot be updated as requested. The group membership may not be updatable, like the composite domain’s “all” group.

NotAllowed: If an attempt is made to use this operation with an insufficient license.

NotFound: If the domain does not exist.

NotFound: If the group does not exist.

NotFound: If any of the provided users do not exist.

Security: If the user does not have the ACCESS_TOOLS and MODIFY_ALL_USERS rights.