URL
POST https://{api-url}/api/v2/tenants/{tenantId}/userGroups
Sample URLs
https://{api-url}/api/v2/tenants/client_1/userGroups
Note
- This API allows a user group to be created with minimal details like: user group name and roles.
- To add users to a user group, use the Add Users to User Group API.
Parameters
Field | Data Type | Description |
---|---|---|
name | String | User group name. |
description | String | (Optional) Short summary describing the user group. |
String | (Optional) User group email address. | |
roles | String | (Optional) Assign roles to user group. Users part of a group automatically inherit the permissions associated with that group. To retrieve roles within a tenant, use Search Roles API. |
Status code
200 OK
Sample request
{
"name": "Network Admins",
"description": "Level A Network Administrators",
"email": "network.admins@myorganization.com",
"roles": [{
"uniqueId": "ROLE-76a8247c-39f4-8921-f5a4-babad80aa8fc"
}]
}
Sample response
{
"uniqueId": "USRGRP-9a68ce5d-c5cd-40a2-9fa6-e496dfe6e01b",
"name": "Network Admins",
"description": "Level A Network Administrators",
"createdTime": "2017-10-16T08:17:17+0000",
"updatedTime": "2017-10-16T08:26:29+0000",
"email": "network.admins@myorganization.com",
"roles": [{
"uniqueId": "ROLE-76a8247c-39f4-8921-f5a4-babad80aa8fc",
"name": "Network Admin Role",
"description": "Level A network administrators to manage all network resources of site SJ",
"defaultRole": false
}]
}