---
agentTools:
  projectIndex: https://docs.agilite.io/llms.txt
---

# /getAssignedRoles

Get assigned roles for a specific BPM Record

# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "Agilit-e BPM",
    "version": "7"
  },
  "servers": [
    {
      "url": "https://api.agilite.io/bpm"
    }
  ],
  "components": {
    "securitySchemes": {
      "sec0": {
        "type": "apiKey",
        "in": "header",
        "name": "api-key"
      }
    }
  },
  "security": [
    {
      "sec0": []
    }
  ],
  "paths": {
    "/getAssignedRoles": {
      "get": {
        "summary": "/getAssignedRoles",
        "description": "Get assigned roles for a specific BPM Record",
        "operationId": "getassignedroles",
        "parameters": [
          {
            "name": "process-key",
            "in": "header",
            "description": "Process Key relevant to Active Users",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "bpm-record-id",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "role-names",
            "in": "header",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "log-profile-key",
            "in": "header",
            "description": "Profile Key of the Batch Logging Profile configured for logging",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "200",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "[\n    {\n        \"name\": \"Originator\",\n        \"users\": [\n            {\n                \"email\": \"user@acme.com\"\n            }\n        ]\n    },\n    {\n        \"name\": \"Approver\",\n        \"users\": [\n            {\n                \"email\": \"user@acme.com\"\n            }\n        ]\n    }\n]"
                  }
                },
                "schema": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "name": {
                        "type": "string",
                        "example": "Originator"
                      },
                      "users": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "email": {
                              "type": "string",
                              "example": "user@acme.com"
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "400",
            "content": {
              "application/json": {
                "examples": {
                  "Result": {
                    "value": "{\n    \"statusCode\": 400,\n    \"errorMessage\": \"An Error Occurred\",\n    \"additionalMessages\": [\"An Error Occured\"]\n}"
                  }
                },
                "schema": {
                  "type": "object",
                  "properties": {
                    "statusCode": {
                      "type": "integer",
                      "example": 400,
                      "default": 0
                    },
                    "errorMessage": {
                      "type": "string",
                      "example": "An Error Occurred"
                    },
                    "additionalMessages": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "example": "An Error Occured"
                      }
                    }
                  }
                }
              }
            }
          }
        },
        "deprecated": false
      }
    }
  },
  "x-readme": {
    "headers": [],
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "x-readme-fauxas": true,
  "_id": "5fc0c5ba525f16005dcefb99:639855275dc4380094677343"
}
```