Defining Group Hierarchy
The JDBC source supports the group hierarchy. If the group schema has any attribute which holds the hierarchy of that group type then hierarchyAttribute can be defined and childHierarchy can be used to set the correct parent-child relationship.
For example, you can refer the following request body for the REST API to add new schema with hierarchy attribute. For more information, refer to listSchemas API and createSchema API.
{
"nativeObjectType": "ROLE",
"identityAttribute": "NAME",
"displayAttribute": "DISPLAY_NAME",
"hierarchyAttribute": "ROLES",
"includePermissions": false,
"features": [],
"configuration": {
"childHierarchy": "true"
},
"attributes": [
{
"name": "NAME",
"type": "STRING",
"schema": null,
"description": "An internal name for the role",
"isMulti": false,
"isEntitlement": false,
"isGroup": false
},
{
"name": "DISPLAY_NAME",
"type": "STRING",
"schema": null,
"description": null,
"isMulti": false,
"isEntitlement": false,
"isGroup": false
},
{
"name": "STATUS",
"type": "STRING",
"schema": null,
"description": null,
"isMulti": false,
"isEntitlement": false,
"isGroup": false
},
{
"name": "ROLES",
"type": "STRING",
"schema": null,
"description": null,
"isMulti": true,
"isEntitlement": true,
"isGroup": false
}
],
"id": "2c91808f79180d49017918643cb60153",
"name": "ROLE",
"created": "2021-01-25T12:07:25.596Z",
"modified": null
}