Method Documentation > Users and Workspaces
Remove User from User Group POST
Description
Remove a user from a user group.
URL
All responses are in JSON format by default, to specify an XML response add “.xml” to the end of the method name (in this case “remove_from_user_group”)
https://<your subdomain>.<your domain>/api/remove_from_user_group
Restrictions
The calling user must have:
- Admin privileges for the site.
Parameters
Bold indicates required.
| Parameter | Description |
|---|---|
| api_key | Your API Key. |
| user_id | The ID of the user being removed from the user group. |
| user_group_ids | A comma-separated list of user group IDs the user can be removed from. |
| timestamp | The current time in Unix timestamp format. |
| signature | Please see “User Authentication” for more information. |
Sample Response
Successful response In JSON:
{"removeFromUserGroup":{"userId":10045, "userGroupIds": 4561,4567}}
Successful response in XML:
<removeFromUserGroup>
<userId>10045</userId>
<userGroupIds>4561,4567</userGroupIds>
</removeFromUserGroup>
Error response In JSON:
{"error":{
"title":"'Remove User from User Group Failed",
"message":"Please try again or contact customer support."}
}
Error response In XML:
<error>
<title>'Remove User from User Group Failed</title>
<message>Please try again or contact customer support.</message>
</error>
Methods in Users and Workspaces
- GET /user_permissions_location
- GET /users_location_access
- GET /workspace_list
- GET /workspace_info
- GET /user_list
- GET /user_info
- POST /workspace_add
- POST /workspace_delete
- POST /user_add
- POST /user_delete
- POST /user_group_add
- POST /user_group_delete
- POST /add_to_workspace
- POST /remove_from_workspace
- POST /add_to_user_group
- POST /remove_from_user_group