Creating roles via V3 API - Criteria grouping issue

Hello everyone,

I’m using a script to create roles in bulk, and I’m sending the following JSON for the assignment criteria:
{
“operation”: “AND”,
“children”: [
{
“attribute”: “rolOrganizativo”,
“operation”: “EQUALS”,
“value”: “ROL-BOT_SVAS”,
“type”: “IDENTITY”
},
{
“attribute”: “cloudLifecycleState”,
“operation”: “EQUALS”,
“value”: “active”,
“type”: “IDENTITY”
}
]
}
The problem is that this creates two different criteria groups, as shown in the image. What should I change in the JSON to make them part of the same criteria group?

under membership use children criteria

{
  "operation": "AND",
  "key": null,
  "values": null,
  "stringValue": null,
  "children": [
    {
      "operation": "EQUALS",
      "key": {
        "type": "IDENTITY",
        "property": "attribute.rolOrganizativo",
        "sourceId": null
      },
      "values": null,
      "stringValue": "ROL-BOT_SVAS",
      "children": null
    },
    {
      "operation": "EQUALS",
      "key": {
        "type": "IDENTITY",
        "property": "attribute.cloudLifecycleState",
        "sourceId": null
      },
      "values": null,
      "stringValue": "active",
      "children": null
    }
  ]
}

Try using this. For more information, refer to the documentation link shared by @HussainshaSyed001 .

Thanks!

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.