Group Hierarchy

If the group schema has any attribute that holds the hierarchy of that group type, then you can define hierarchyAttribute and use childHierarchy 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. Refer to the following for more information:

Note
For more information on SailPoint's REST APIs, refer to Best Practices: REST API Authentication and REST API - Update Source (Partial) in the SailPoint Developer Community.

Copy
{
        "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
    }