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

# Set all groups for a role

Set all groups for a role

# 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/v1/auth/roles/{rolename}/groups": {
      "put": {
        "description": "Set all groups for a role",
        "tags": [
          "Authentication",
          "saas"
        ],
        "summary": "Set all groups for a role",
        "operationId": "putRoleGroups",
        "parameters": [
          {
            "x-go-name": "Rolename",
            "description": "The rolename of the role to set groups for",
            "name": "rolename",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "group_ids"
                ],
                "properties": {
                  "group_ids": {
                    "description": "The complete set of groups to set for the role",
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "format": "uint64"
                    },
                    "x-go-name": "GroupIDs",
                    "maxItems": 500
                  }
                }
              }
            }
          },
          "x-go-name": "Body"
        },
        "responses": {
          "201": {
            "$ref": "#/components/responses/EmptyResponse"
          }
        },
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "POST",
          "uri": "${biulInvocationArn}"
        }
      }
    }
  },
  "components": {
    "responses": {
      "EmptyResponse": {
        "description": "EmptyResponse No response body is provided with this request"
      }
    },
    "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": {}
}
```