Resource Group

Add the following attributes to your schema using the Create New Schema Identity Security Cloud REST API.

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.

Example schema:

Copy
{
  "name": "resourceGroup",
  "nativeObjectType": "resourceGroup",
  "identityAttribute": "id",
  "displayAttribute": "name",
  "attributes": [
    {
      "name": "id",
      "type": "STRING",
      "schema": null,
      "description": "ID of the resource group",
      "isMulti": false,
      "isEntitlement": false,
      "isGroup": false
    },
    {
      "name": "name",
      "type": "STRING",
      "schema": null,
      "description": "Name of the resource group",
      "isMulti": false,
      "isEntitlement": false,
      "isGroup": false
    },
    {
      "name": "type",
      "type": "STRING",
      "schema": null,
      "description": "Type of the resource group",
      "isMulti": false,
      "isEntitlement": false,
      "isGroup": false
    },
    {
      "name": "location",
      "type": "STRING",
      "schema": null,
      "description": "Location of the resource group",
      "isMulti": false,
      "isEntitlement": false,
      "isGroup": false
    },
    {
      "name": "provisioningState",
      "type": "STRING",
      "schema": null,
      "description": "Provisioning state of the resource group",
      "isMulti": false,
      "isEntitlement": false,
      "isGroup": false
    }
  ]
}

The following is the corresponding sample entry of this entitlement in the account schema (if needed):

Copy
[
  {
    "op": "add",
    "path": "/attributes/-",
    "value": {
      "name": "resourceGroup",
      "type": "STRING",
      "schema": {
        "type": "CONNECTOR_SCHEMA",
        "id": "resource-group-schema-id",
        "name": "resourceGroup"
      },
      "description": "resourceGroup",
      "isMulti": true,
      "isEntitlement": true,
      "isGroup": true
    }
  }
]