Spectra Logic
1-800-833-1132 : 1-303-449-6400


Access Control Operations : Group Operations : Add User as Group Member

Add User as Group Member
Description
Add the specified user as a member of the specified group.
Requests
Syntax
POST http[s]://{datapathDNSname}/_rest_/group_member?group_id={string}&member_user_id={string}
Request Parameters 
Responses
Response Elements
<Data>
   <GroupId>{
string}</GroupId>
   <Id>{string}</Id>
   <MemberGroupId/>{string}</MemberGroupId>
   <MemberUserId>{string}</MemberUserId>
</Data>
where the response elements are defined as follows:
Example
Sample Request
This request adds the user “MJ” to the group named “Accounting”.
POST http[s]://blackpearl-hostname/_rest_/group_member?group_id=Accounting&member_user_id=MJ HTTP/1.1
Sample Response
HTTP/1.1 201 CREATED
<Data>
   <GroupId>3962c577-5ddb-466f-bb56-a0c7e3019c81</GroupId>
   <Id>96dd02c6-4690-435f-8a7a-a9754b772b6d</Id>
   <MemberGroupId/>
   <MemberUserId>
      2aea0681-e80b-4d9d-9119-d6653a00cbed
   </MemberUserId>
</Data>