Create User Group Using POST
If the authSourceId is specified(in the request), then the user group will be imported from the corresponding auth source (LDAP/AD/SSO/VIDM).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.
The group object to be created.
Show optional properties
{
"name": "string"
}
{
"authSourceId": "string",
"description": "string",
"displayName": "string",
"id": "string",
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"name": "string",
"role-permissions": [
{
"allowAllObjects": false,
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"roleName": "string",
"scopeId": "string",
"traversal-spec-instances": [
{
"adapterKind": "string",
"includedAdapterKinds": [
"string"
],
"name": "string",
"resourceKind": "string",
"resourceSelection": [
{
"resourceId": [
"string"
],
"type": "string"
}
],
"selectAllResources": false
}
]
}
],
"roleNames": [
"string"
],
"userIds": [
"string"
]
}
The identifier of the auth source. If it is null, a local user group will be created.
A description about this group.
The displayName of this group.
The identifier of this group.(unique)
Note: Required when updating or deleting the user group.
The name of this group.
The list of role permissions assigned to this group. May be null. Replaces and takes precedence over roleNames
.
(Deprecated) List of role names assigned to the user group. May be null.
The list of users who are members of this group.
The user group is created successfully
{
"authSourceId": "string",
"description": "string",
"displayName": "string",
"id": "string",
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"name": "string",
"role-permissions": [
{
"allowAllObjects": false,
"links": [
{
"description": "string",
"href": "string",
"name": "string",
"rel": "string"
}
],
"roleName": "string",
"scopeId": "string",
"traversal-spec-instances": [
{
"adapterKind": "string",
"includedAdapterKinds": [
"string"
],
"name": "string",
"resourceKind": "string",
"resourceSelection": [
{
"resourceId": [
"string"
],
"type": "string"
}
],
"selectAllResources": false
}
]
}
],
"roleNames": [
"string"
],
"userIds": [
"string"
]
}
The identifier of the auth source. If it is null, a local user group will be created.
A description about this group.
The displayName of this group.
The identifier of this group.(unique)
Note: Required when updating or deleting the user group.
The name of this group.
The list of role permissions assigned to this group. May be null. Replaces and takes precedence over roleNames
.
(Deprecated) List of role names assigned to the user group. May be null.
The list of users who are members of this group.