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

# Get Time/Date Groups for a Role

Get a list of all RBP tmdategrps associated with a role for a host by role 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}/tmdategrps": {
      "get": {
        "description": "Get a list of all RBP tmdategrps associated with a role for a host by role ID.",
        "tags": [
          "RBP",
          "saas"
        ],
        "summary": "Get Time/Date Groups for a Role",
        "operationId": "rbpGetRoleTimeDates",
        "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": "ID",
            "description": "The ID for the role",
            "name": "roleid",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int64"
            }
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/rbpRoleTimeDates"
          },
          "400": {
            "$ref": "#/components/responses/TextError"
          }
        },
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "POST",
          "uri": "${biulInvocationArn}"
        }
      }
    }
  },
  "components": {
    "responses": {
      "TextError": {
        "description": "TextError An unknown error occured, details provided in body"
      },
      "rbpRoleTimeDates": {
        "description": "RBPRoleTimeDatesResponse is a JSON object containing information for a set of RBP role-tmdategrp associations",
        "content": {
          "application/json": {
            "schema": {
              "type": "array",
              "items": {
                "$ref": "#/components/schemas/RoleTimeDate"
              },
              "maxItems": 500
            }
          }
        }
      }
    },
    "schemas": {
      "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"
      }
    },
    "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://{example.com}"
    }
  ],
  "x-readme": {}
}
```