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

# Get specified Role with all its role details

Get specified Role with all its role details.

# 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/v6/pbul/{hostid}/rbp/roledetail/{id}": {
      "get": {
        "description": "Get specified Role with all its role details.",
        "tags": [
          "RBP",
          "saas"
        ],
        "summary": "Get specified Role with all its role details",
        "operationId": "rbpGetRoleDetail",
        "parameters": [
          {
            "x-go-name": "ID",
            "description": "The ID for the requested resource",
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          },
          {
            "x-go-name": "HostID",
            "description": "The Host ID to perform this operation on",
            "name": "hostid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/rbpRoleDetailv6"
          },
          "400": {
            "$ref": "#/components/responses/TextError"
          }
        },
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "POST",
          "uri": "${biulInvocationArn}"
        }
      }
    }
  },
  "components": {
    "responses": {
      "TextError": {
        "description": "TextError An unknown error occurred, details provided in body"
      },
      "rbpRoleDetailv6": {
        "description": "RBPRoleDetailv6Response is a JSON object containing information for all RBP entities",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/RBPRoleDetail"
            }
          }
        }
      }
    },
    "schemas": {
      "AuthenticationSettings": {
        "description": "AuthenticationSettings is a model for configuring reauthentication. Reauthentication is a form of an additional second stage authentication, requiring a user to\nsupply something else when elevating with pbrun.",
        "type": "object",
        "properties": {
          "authType": {
            "description": "The type of second stage authentication to perform",
            "type": "integer",
            "format": "uint8",
            "x-go-name": "AuthType"
          },
          "location": {
            "description": "Where to run the second stage of authentication",
            "type": "integer",
            "format": "uint8",
            "x-go-name": "AuthLocation"
          },
          "message": {
            "description": "Message displayed on invalid authentication",
            "type": "string",
            "x-go-name": "Message"
          },
          "password": {
            "$ref": "#/components/schemas/password"
          },
          "period": {
            "description": "Time before cache invalidation",
            "type": "integer",
            "format": "uint64",
            "x-go-name": "Period"
          },
          "prompt": {
            "description": "The prompt string displayed",
            "type": "string",
            "x-go-name": "Prompt"
          },
          "rejectMessage": {
            "description": "Message logged against the event",
            "type": "string",
            "x-go-name": "RejectMessage"
          },
          "service": {
            "description": "The PAM service",
            "type": "string",
            "x-go-name": "Service"
          },
          "tries": {
            "description": "The number of password attempts before lockout",
            "type": "integer",
            "format": "uint64",
            "x-go-name": "Tries"
          },
          "user": {
            "description": "The username to check against for authentication",
            "type": "string",
            "x-go-name": "User"
          }
        },
        "x-go-package": "pbsmc/data/dtos"
      },
      "RBPName": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "name": {
            "type": "string",
            "x-go-name": "Name"
          }
        },
        "x-go-package": "pbsmc/data/dtos"
      },
      "RBPRole": {
        "description": "RBPRole ties all other entities together to define a policy",
        "type": "object",
        "properties": {
          "action": {
            "type": "string",
            "x-go-name": "Action"
          },
          "auth": {
            "$ref": "#/components/schemas/AuthenticationSettings"
          },
          "comment": {
            "type": "string",
            "x-go-name": "Comment"
          },
          "description": {
            "type": "string",
            "x-go-name": "Description"
          },
          "disabled": {
            "type": "boolean",
            "x-go-name": "Disabled"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "iolog": {
            "type": "string",
            "x-go-name": "IOLog"
          },
          "message": {
            "type": "string",
            "x-go-name": "Message"
          },
          "msg": {
            "type": "string",
            "x-go-name": "Reason"
          },
          "name": {
            "type": "string",
            "x-go-name": "Name"
          },
          "risk": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Risk"
          },
          "rolecmds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleCommand"
            },
            "x-go-name": "RoleCommands",
            "maxItems": 500
          },
          "rolehosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleHost"
            },
            "x-go-name": "RoleHosts",
            "maxItems": 500
          },
          "roletmdates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleTimeDate"
            },
            "x-go-name": "RoleTimeDates",
            "maxItems": 500
          },
          "roleusers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleUser"
            },
            "x-go-name": "RoleUsers",
            "maxItems": 500
          },
          "rorder": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Order"
          },
          "rpt": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "EntitlementReporting"
          },
          "script": {
            "type": "string",
            "x-go-name": "Script"
          },
          "tag": {
            "type": "string",
            "x-go-name": "Tag"
          },
          "variables": {
            "x-go-name": "Variables"
          },
          "varmatch": {
            "$ref": "#/components/schemas/RBPVarmatch"
          },
          "whoami": {
            "description": "WARN(elowry): ChangeManagementRequest should not exist on the frontend model in this state -- see TFS #160994",
            "type": "string",
            "x-go-name": "WhoAmI"
          }
        },
        "x-go-package": "pbsmc/data/dtos"
      },
      "RBPRoleDetail": {
        "description": "RBPRoleDetail is a struct that contains all RBP Role detail for a specified role",
        "type": "object",
        "properties": {
          "cmdgrp": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RBPName"
            },
            "x-go-name": "CommandGroups",
            "maxItems": 500
          },
          "hostgrp": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RBPName"
            },
            "x-go-name": "HostGroups",
            "maxItems": 500
          },
          "role": {
            "$ref": "#/components/schemas/RBPRole"
          },
          "rolecmds": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleCommand"
            },
            "x-go-name": "RoleCommands",
            "maxItems": 500
          },
          "rolehosts": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleHost"
            },
            "x-go-name": "RoleHosts",
            "maxItems": 500
          },
          "roletmdates": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleTimeDate"
            },
            "x-go-name": "RoleTimeDates",
            "maxItems": 500
          },
          "roleusers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RoleUser"
            },
            "x-go-name": "RoleUsers",
            "maxItems": 500
          },
          "tmdategrp": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RBPName"
            },
            "x-go-name": "TimeDateGroups",
            "maxItems": 500
          },
          "usergrp": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/RBPName"
            },
            "x-go-name": "UserGroups",
            "maxItems": 500
          }
        },
        "x-go-package": "pbsmc/data/dtos"
      },
      "RBPVarmatch": {
        "description": "RBPVarmatch represents the structure of a PMUL varmatch object that can be used to limit when a policy applies",
        "type": "object",
        "properties": {
          "pbclientmode": {
            "type": "string",
            "x-go-name": "PbClientMode"
          },
          "pbclientname": {
            "type": "string",
            "x-go-name": "PbClientName"
          }
        },
        "x-go-package": "pbsmc/data/dtos"
      },
      "RoleCommand": {
        "description": "RoleCommand is a record of an association between an existing command group record and an existing role",
        "type": "object",
        "properties": {
          "cmds": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "CommandGroup"
          },
          "error": {
            "type": "string",
            "x-go-name": "Message"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "msg": {
            "type": "string",
            "x-go-name": "Reason"
          },
          "rolename": {
            "type": "string",
            "x-go-name": "Name"
          },
          "status": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Status"
          },
          "whoami": {
            "type": "string",
            "x-go-name": "WhoAmI"
          }
        },
        "x-go-package": "pbsmc/remote/pbrest/entities"
      },
      "RoleHost": {
        "description": "RoleHost is a record of an association between an existing host group record and an existing role",
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Message"
          },
          "hosts": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "HostGroup"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "msg": {
            "type": "string",
            "x-go-name": "Reason"
          },
          "rolename": {
            "type": "string",
            "x-go-name": "Name"
          },
          "status": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Status"
          },
          "type": {
            "type": "string",
            "x-go-name": "Type"
          },
          "whoami": {
            "type": "string",
            "x-go-name": "WhoAmI"
          }
        },
        "x-go-package": "pbsmc/remote/pbrest/entities"
      },
      "RoleTimeDate": {
        "description": "RoleTimeDate is a record of an association between an existing command time/date group record and an existing role",
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Message"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "msg": {
            "type": "string",
            "x-go-name": "Reason"
          },
          "rolename": {
            "type": "string",
            "x-go-name": "Name"
          },
          "status": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Status"
          },
          "tmdates": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "TimeDateGroup"
          },
          "whoami": {
            "type": "string",
            "x-go-name": "WhoAmI"
          }
        },
        "x-go-package": "pbsmc/remote/pbrest/entities"
      },
      "RoleUser": {
        "description": "RoleUser is a record of an association between an existing user group record and an existing role",
        "type": "object",
        "properties": {
          "error": {
            "type": "string",
            "x-go-name": "Message"
          },
          "id": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "ID"
          },
          "msg": {
            "type": "string",
            "x-go-name": "Reason"
          },
          "rolename": {
            "type": "string",
            "x-go-name": "Name"
          },
          "status": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "Status"
          },
          "type": {
            "type": "string",
            "x-go-name": "Type"
          },
          "users": {
            "type": "integer",
            "format": "int64",
            "x-go-name": "UserGroup"
          },
          "whoami": {
            "type": "string",
            "x-go-name": "WhoAmI"
          }
        },
        "x-go-package": "pbsmc/remote/pbrest/entities"
      },
      "password": {
        "type": "string",
        "x-go-package": "pbsmc/data/dtos"
      }
    },
    "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": {}
}
```