Remove members ========================= Remove users from an organization user group. This endpoint allows you to remove one or more users from an existing user group. .. code-block:: sh DELETE |apiUrl|/api/|apiVersion|/organization/{organizationId}/user-groups/{groupId}/members **URI Parameters** +------------------------+-------------------+----------------------------------------+ | Name | Type | Description | +========================+===================+========================================+ | groupId | UUID | id of user group | +------------------------+-------------------+----------------------------------------+ | organizationId | number | id of organization | +------------------------+-------------------+----------------------------------------+ **Body Parameters** +------------------------+-------------------+----------------------------------------+ | Name | Type | Description | +========================+===================+========================================+ | organizationUserIds | number [] | List of organization user IDs to remove| +------------------------+-------------------+----------------------------------------+ Responses ------------- +------------------------+--------------------------------------------------------------------------------------------------+----------------------------+ | Name | Type | Description | +========================+==================================================================================================+============================+ | 207 Multi-Status | :doc:`Organization member operation result | successful operation | | | <../../datastructures/organization-member-operation-result>` [] | | +------------------------+--------------------------------------------------------------------------------------------------+----------------------------+ Scopes ------------- +------------------------+-------------------------------------------------------------------------------+ | Name | Description | +========================+===============================================================================+ | Organization.ReadWrite | Grants user possibility to read and write organization data | +------------------------+-------------------------------------------------------------------------------+ Examples ------------- Remove single member ^^^^^^^^^^^^^^^^^^^^ **Sample request** .. code-block:: sh curl -X DELETE "|apiUrl|/api/|apiVersion|/organization/1/user-groups/a4d5e6f7-8b9c-4d2e-9f1a-3b4c5d6e7f8a/members" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer <>" -d "<>" Body: .. code-block:: js { "organizationUserIds": [12] } **Sample response** HTTP status code: ``207`` .. code-block:: js { "organizationUsers": [ { "organizationUserId": 12, "success": true, "error": null } ] } Remove multiple members ^^^^^^^^^^^^^^^^^^^^^^^ **Sample request** .. code-block:: sh curl -X DELETE "|apiUrl|/api/|apiVersion|/organization/1/user-groups/a4d5e6f7-8b9c-4d2e-9f1a-3b4c5d6e7f8a/members" -H "accept: application/json" -H "Content-Type: application/json" -H "Authorization: Bearer <>" -d "<>" Body: .. code-block:: js { "organizationUserIds": [11, 12, 13] } **Sample response** HTTP status code: ``207`` .. code-block:: js { "organizationUsers": [ { "organizationUserId": 11, "success": true, "error": null }, { "organizationUserId": 12, "success": true, "error": null } ] } .. note:: Removing users from a group does not remove their individual device accesses. Only accesses granted through the group membership are affected.