For the complete documentation index, see llms.txt. This page is also available as Markdown.

User Groups

Operations for managing user groups including creation, editing, deletion, and listing user groups.

List all user groups

get

This endpoint retrieves a list of user groups and returns their attributes. For possible 'group_type' values, please refer to the enum documentation for 'GroupType'. Also, 'nested_groups' refers to the list of direct child groups of the given user group. Similarly, 'idp_groups' refers to the identifiers of associated identity provider groups to the given user group.

Responses
200

Successfully retrieved user groups

application/json
dataobject[]Required
get/platform/iam/v1/user-group
GET /platform/iam/v1/user-group HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Accept: */*
{
  "data": [
    {
      "group_id": "test_group1",
      "group_name": "Group2",
      "description": null,
      "role_id": "role_name01",
      "pretty_role_name": "Role Name 01",
      "created_by": "user1@test.com",
      "created_ts": 1661170832341,
      "updated_ts": 1661171650679,
      "users": [
        "user1@test.com",
        "user2@test.com",
        "user3@test.com",
        "user4@test.com",
        "user5@test.com"
      ],
      "group_type": "custom",
      "nested_groups": [
        {
          "group_id": "abc_123",
          "group_name": "child-group-name1"
        }
      ],
      "idp_groups": [
        "test_idp_group_name"
      ]
    }
  ],
  "metadata": {
    "total_count": 1
  }
}

Create a new user group

post

This endpoint creates a new user group with the specified configuration. You can assign a role, add users, configure nested groups, and link identity provider groups. All fields except 'group_name' are optional.

Body

Request object for creating a new user group

Responses
201

User Group created successfully

application/json
post/platform/iam/v1/user-group
POST /platform/iam/v1/user-group HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Content-Type: application/json
Accept: */*
Content-Length: 231

{
  "request_data": {
    "group_name": "test_group_name",
    "role_id": "role_name_123",
    "description": "Test Description",
    "users": [
      "user1@test.com"
    ],
    "nested_group_ids": [
      "7f3o5b2c-4d5e-4f6a-8b9c-1d3o5f4a5b6c_123"
    ],
    "idp_groups": [
      "test idp group"
    ]
  }
}
{
  "data": {
    "message": "user group with group id 123-456 created successfully"
  }
}

Delete an existing user group

delete

Delete an existing user group. Note: upon deletion of a user group, its nested groups are not deleted; the relationships are simply removed.

Path parameters
group_idstringRequired

Full user group id

Example: 7f8a9b2c-4d5e-4f6a-8b9c-1d2e3f4a5b6c_123
Responses
200

User Group deleted successfully

application/json
delete/platform/iam/v1/user-group/{group_id}
DELETE /platform/iam/v1/user-group/{group_id} HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Accept: */*
{
  "data": {
    "message": "user group with group id 7f8a9b2c-4d5e-4f6a-8b9c-1d2e3f4a5b6c_123 deleted successfully"
  }
}

Edit an existing user group

patch

This endpoint allows modification of an existing user group by providing the group_id in the path and the update details in the request body. Only specified fields will be updated. Please note that to remove attributes, you must provide either an empty string or empty list as the value of the respective field in the request body.

Path parameters
group_idstringRequired

Full user group id

Example: 7f8a9b2c-4d5e-4f6a-8b9c-1d2e3f4a5b6c_123
Body

Request object for editing an existing user group

Responses
200

User Group edited successfully

application/json
patch/platform/iam/v1/user-group/{group_id}
PATCH /platform/iam/v1/user-group/{group_id} HTTP/1.1
Host: api-cortex.paloaltonetworks.com
Content-Type: application/json
Accept: */*
Content-Length: 234

{
  "request_data": {
    "group_name": "test_group_name",
    "role_id": "role_name_123",
    "description": "Test Updated Description",
    "users": [
      "test user"
    ],
    "nested_group_ids": [
      "7f3o5b2c-4d5e-4f6a-8b9c-1d3o5f4a5b6c_123"
    ],
    "idp_groups": [
      "test idp group"
    ]
  }
}
{
  "data": {
    "message": "user group with group id 123-456 updated successfully"
  }
}

Last updated

Was this helpful?