Create User Group

Create User Group

If the authSourceId is specified(in the request), then the user group will be imported from the corresponding auth source (LDAP/AD/SSO/VIDM/VIDB).Note that the id of the user group has to be null.
For LDAP/AD groups the distinguishedName should be provided in the name field.
The value of displayName is used only while importing LDAP/AD groups, and if it is not provided then the value of name will be assigned to it. For SSO/VIDM groups the value of name is assigned to displayName.
NOTE: Before importing please make sure that the group exists in the specified authSource by using the following API - /api/auth/sources/{id}/usergroups/search . Otherwise, if you try to import a non-existing group, a new one will be created with the specified authSourceId.
NOTE: In the case of vIDB user group, the import occurs based on the provided externalId. If other provided details are incorrect, they will be asynchronously updated with the correct values right after the import operation is completed.

Request
URI
POST
https://{api_host}/suite-api/api/auth/usergroups
COPY
Request Body

The group object to be created.

user-group of type(s) application/json
Required

Show optional properties

{
    "name": "string"
}
"{\n  \"name\" : \"user_group_name\",\n  \"description\" : \"user_group_desc\",\n  \"userIds\" : [ \"0659cefc-592f-473a-910c-2ee01c13ea07\" ],\n  \"role-permissions\" : [ {\n    \"roleName\" : \"Administrator\",\n    \"traversal-spec-instances\" : [ {\n      \"adapterKind\" : \"adap_kind\",\n      \"resourceKind\" : \"resource_kind\",\n      \"name\" : \"traversal_spec_name\",\n      \"selectAllResources\" : true\n    } ],\n    \"allowAllObjects\" : true\n  } ]\n}"
string As uuid As uuid
id
Optional

The identifier of this group.(unique)

Note: Required when updating or deleting the user group.

string As uuid As uuid
authSourceId
Optional

The identifier of the auth source. If it is null, a local user group will be created.

string
name
Required

The name of this group.

string
description
Optional

A description about this group.

string
displayName
Optional

The displayName of this group.

array of string
userIds
Optional

The list of users who are members of this group.

array of string
roleNames
Optional

(Deprecated) List of role names assigned to the user group. May be null.

array of object
role-permissions
Optional

The list of role permissions assigned to this group. May be null. Replaces and takes precedence over roleNames.

string
externalId
Optional

External ID of vIDB user group. This field is only used in vIDB user group import flow. It will not be populated for any other scenarios. Please note, this field may be removed in future.

array of object
links
Optional

Represents a HTTP 'link' element.
It is implicit that all the link tags support http 'GET' method.

Authentication
This operation uses the following authentication methods.
Responses
201

The user group is created successfully

Returns user-group of type(s) application/json
"{\n  \"id\" : \"89fed483-c533-4bd0-bf25-753550dd5f83\",\n  \"name\" : \"user_group_name\",\n  \"description\" : \"user_group_desc\",\n  \"userIds\" : [ \"b20e256a-9cf0-4000-bdb2-023853fe018e\" ],\n  \"role-permissions\" : [ {\n    \"roleName\" : \"Administrator\",\n    \"traversal-spec-instances\" : [ {\n      \"adapterKind\" : \"adap_kind\",\n      \"resourceKind\" : \"resource_kind\",\n      \"name\" : \"traversal_spec_name\",\n      \"selectAllResources\" : true\n    } ],\n    \"allowAllObjects\" : true\n  } ]\n}"
string As uuid As uuid
id
Optional

The identifier of this group.(unique)

Note: Required when updating or deleting the user group.

string As uuid As uuid
authSourceId
Optional

The identifier of the auth source. If it is null, a local user group will be created.

string
name
Required

The name of this group.

string
description
Optional

A description about this group.

string
displayName
Optional

The displayName of this group.

array of string
userIds
Optional

The list of users who are members of this group.

array of string
roleNames
Optional

(Deprecated) List of role names assigned to the user group. May be null.

array of object
role-permissions
Optional

The list of role permissions assigned to this group. May be null. Replaces and takes precedence over roleNames.

string
externalId
Optional

External ID of vIDB user group. This field is only used in vIDB user group import flow. It will not be populated for any other scenarios. Please note, this field may be removed in future.

array of object
links
Optional

Represents a HTTP 'link' element.
It is implicit that all the link tags support http 'GET' method.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"name:"string"}' https://{api_host}/suite-api/api/auth/usergroups
                
Auth Operations
GET
Get Users
PUT
Modify User
POST
Create User
DELETE
Delete Users
PUT
Assign Traversal Spec To User
Deprecated
GET
Get Assigned Role Permissions For User
PUT
Assign Role Permission To User
PUT
Change Password
GET
Get User Groups
PUT
Modify User Group
POST
Create User Group
DELETE
Delete User Groups
PUT
Assign Traversal Spec To User Group
Deprecated
GET
Get Assigned Role Permissions For User Group
PUT
Assign Role Permission To User Group
GET
Get Auth Sources
PUT
Update Auth Source
POST
Add Auth Source
PATCH
Patch Auth Source With Certificate Details
PUT
Synchronize User Groups
GET
Get All Object Scopes
PUT
Modify Scope
POST
Create Scope
DELETE
Delete Scopes
GET
Get Roles
PUT
Update User Role
POST
Create User Role
GET
Get Role Privileges
PUT
Set Role Privileges
POST
Add Role Privileges
DELETE
Remove Role Privileges
POST
Release Token
POST
Acquire Token
POST
Import Users
POST
Search Users For Auth Source
POST
Search User Groups For Auth Source
POST
Test Auth Source
PATCH
Patch Test Auth Source
GET
Get User
DELETE
Delete User
GET
Get User Group
DELETE
Delete User Group
GET
Get Traversal Specs
GET
Get Auth Source Types
GET
Get Auth Source Type
GET
Get Auth Source
DELETE
Delete Auth Source
GET
Get Scope
GET
Get Role By Name
DELETE
Delete User Role
GET
Get Available Privileges
GET
Get Available Privilege Groups
GET
Get Current User
GET
Get Current User Role Privileges
GET
Get Assigned Role Permissions For Current User
DELETE
Unassigned Role Permission From User
DELETE
Unassigned Role Permission From User Group