APIs to manage use groups.
Access Management API (v3)
Request
This endpoint provides list of user groups of a company, with filtering, sorting, and pagination support.
Query text to search user groups. The match would be case-insensitive.
Pagination information for request.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/list
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/list
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093947/user-groups/list \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchText": "Company Admins",
"pagination": {
"offset": 0,
"limit": 100
},
"sortParams": {
"sortBy": "NAME",
"sortOrder": "DESC"
},
"filters": [
{
"userGroupIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"permissions": [
{
"permission": "COMPANY_MANAGEMENT",
"actions": [
"READ"
]
}
]
}
]
}'OK
User groups matching with the request.
User group identifier.
A description of the user group.
Company ID of the user group.
Date and time when the user group was created.
Date and time when the user group was last updated.
User who created the user group.
User who last updated the user group.
Whether the group is not modifiable. This would be set true only for platform created groups. Only group name, description and assigned roles & scopes can not be modified but members can still be updated.
{ "userGroups": [ { … } ], "pagination": { "totalNumResults": 0 } }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Company Admins",
"description": "Group for managing the company settings."
}'{ "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3" }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/{groupId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/{groupId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X GET \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'OK
A description of the user group.
Company ID of the user group.
Date and time when the user group was created.
Date and time when the user group was last updated.
User who created the user group.
User who last updated the user group.
Whether the group is not modifiable. This would be set true only for platform created groups. Only group name, description and assigned roles & scopes can not be modified but members can still be updated.
{ "id": "4974a66b-7493-4f41-908c-58ba81093947", "name": "Company Admins", "description": "Group for managing the company settings.", "companyId": "1234a66b-7493-4f41-908c-58ba81093653", "createdAt": { "iso8601": "2017-07-21T17:32Z" }, "updatedAt": { "iso8601": "2017-07-21T17:32Z" }, "createdBy": { "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3", "name": "Name" }, "updatedBy": { "id": "b93dc51f-12dd-46c7-b7d6-1cb12cd3f5b3", "name": "Name" }, "isUnmodifiable": false, "platformGroupType": "COMPANY_ADMIN" }
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/{groupId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/{groupId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X DELETE \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/{groupId}
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/{groupId}
- curl
- JavaScript
- Node.js
- Python
curl -i -X PUT \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups/4974a66b-7493-4f41-908c-58ba81093947 \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"name": "Company Admins",
"description": "Group for managing the company settings."
}'Request
This endpoint provides a list of members in a user group with filtering, sorting, and pagination support.
Pagination information for request.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/{groupId}/members
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/{groupId}/members
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups/4974a66b-7493-4f41-908c-58ba81093947/members \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"pagination": {
"offset": 0,
"limit": 100
},
"sortParams": {
"sortBy": "ADDED_AT",
"sortOrder": "DESC"
},
"filters": [
{
"addedAfter": {
"iso8601": "2017-07-21T17:32Z"
},
"addedBefore": {
"iso8601": "2017-07-21T17:32Z"
},
"userIds": [
"1234a66b-7493-4f41-908c-58ba81093947"
]
}
]
}'{ "members": [ { … } ], "pagination": { "totalNumResults": 0 } }
List of user ids to be added to the user group.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/companies/{companyId}/user-groups/{groupId}/members
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/companies/{companyId}/user-groups/{groupId}/members
- curl
- JavaScript
- Node.js
- Python
curl -i -X PATCH \
https://api-ext-sboxmeta.partners.spotnana.com/v3/companies/1234a66b-7493-4f41-908c-58ba81093653/user-groups/4974a66b-7493-4f41-908c-58ba81093947/members \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"userIdsToAdd": [
"1234a66b-7493-4f41-908c-58ba81093947"
],
"userIdsToRemove": [
"4974a66b-7493-4f41-908c-58ba81093947"
]
}'Request
This endpoint provides list of user groups of a user, with filtering, sorting, and pagination support.
Query text to search user groups. The match would be case-insensitive.
Pagination information for request.
- Sandbox URLhttps://api-ext-sboxmeta.partners.spotnana.com/v3/users/{userId}/user-groups
- Spotnana mock serverhttps://developer.spotnana.com/_mock/openapi/rbacapi/v3/users/{userId}/user-groups
- curl
- JavaScript
- Node.js
- Python
curl -i -X POST \
https://api-ext-sboxmeta.partners.spotnana.com/v3/users/1234a66b-7493-4f41-908c-58ba81093947/user-groups \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"searchText": "Company Admins",
"pagination": {
"offset": 0,
"limit": 100
},
"sortParams": {
"sortBy": "NAME",
"sortOrder": "DESC"
},
"filters": [
{
"userGroupIds": [
"497f6eca-6276-4993-bfeb-53cbbbba6f08"
],
"permissions": [
{
"permission": "COMPANY_MANAGEMENT",
"actions": [
"READ"
]
}
]
}
]
}'OK
User groups matching with the request.
User group identifier.
A description of the user group.
Company ID of the user group.
Date and time when the user group was created.
Date and time when the user group was last updated.
User who created the user group.
User who last updated the user group.
Whether the group is not modifiable. This would be set true only for platform created groups. Only group name, description and assigned roles & scopes can not be modified but members can still be updated.
{ "userGroups": [ { … } ], "pagination": { "totalNumResults": 0 } }