To add a user to a user group, assign
the user group to the user object.
Note:
If you locked any resources of the target storage system by using the REST API, you will not be able to use this API function. In such cases, unlock the resources before running the API function.
Execution permission
Security Administrator (View & Modify)
Request line
POST base-URL/v1/objects/users/object-ID/actions/add-user-group/invoke
Request message
Response message
Action template
GET base-URL/v1/objects/users/object-ID/actions/add-user-group
Status codes
For details on the status codes of the request for this operation, see the description on HTTP status codes.
Coding example
To get an action template:
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" -X GET https://192.0.2.100/ConfigurationManager/v1/objects/users/devUser/actions/add-user-group
To run the request after getting an action template:
curl -v -H "Accept:application/json" -H "Content-Type:application/json" -H "Authorization:Session d7b673af189048468c5af9bcf3bbbb6f" --data-binary @./InputParameters.json -X POST https://192.0.2.100/ConfigurationManager/v1/objects/users/devUser/actions/add-user-group/invoke