---
updatedAt: 2026-07-10T17:11:53.000Z
---

# Delete User Group from a Role

Remove a RBP user group associated with a role for a host by role and user group ID.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "description": "This API provides access to control BeyondTrust software for Endpoint Privilege Management Linux.",
    "title": "Endpoint Privilege Management Linux API",
    "version": "25.1.6"
  },
  "security": [
    {
      "nomine-authorizer": []
    }
  ],
  "paths": {
    "/api/pbul/{hostid}/rbp/roles/{roleid}/usergrps/{usergrpid}": {
      "delete": {
        "description": "Remove a RBP user group associated with a role for a host by role and user group ID.",
        "tags": [
          "RBP",
          "saas"
        ],
        "summary": "Delete User Group from a Role",
        "operationId": "rbpDeleteRoleUser",
        "parameters": [
          {
            "x-go-name": "HostID",
            "description": "The Host ID to perform this operation on",
            "name": "hostid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "x-go-name": "Reason",
            "description": "An optional string that describes the reason for this change",
            "name": "reason",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "RoleType",
            "description": "The type of the `roleuser` or `rolehost` (e.g., 'S' or 'R'); if none is given, performs operation on both if present",
            "name": "type",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "x-go-name": "ID",
            "description": "The ID for the user group (usergrp)",
            "name": "usergrpid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "x-go-name": "ID",
            "description": "The ID for the role",
            "name": "roleid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/EmptyResponse"
          },
          "400": {
            "$ref": "#/components/responses/TextError"
          }
        },
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "POST",
          "uri": "${biulInvocationArn}"
        }
      }
    }
  },
  "components": {
    "responses": {
      "EmptyResponse": {
        "description": "EmptyResponse No response body is provided with this request"
      },
      "TextError": {
        "description": "TextError An unknown error occurred, details provided in body"
      }
    },
    "securitySchemes": {
      "nomine-authorizer": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "x-amazon-apigateway-authtype": "custom",
        "x-amazon-apigateway-authorizer": {
          "type": "request",
          "authorizerUri": "${authorizerInvokeArn}",
          "authorizerResultTtlInSeconds": 300,
          "identitySource": "method.request.header.Authorization"
        }
      }
    }
  },
  "servers": [
    {
      "url": "https://api.beyondtrust.io/site/{siteid}/epm/linux"
    }
  ],
  "x-readme": {}
}
```