---
title: "Get ABAC attribute definition by ID"
slug: "get-abac-attribute-definition-by-id"
updated: 2026-06-01T06:32:04Z
published: 2026-06-01T06:32:04Z
---

> ## Documentation Index
> Fetch the complete documentation index at: https://developer.rocket.chat/llms.txt
> Use this file to discover all available pages before exploring further.

# Get ABAC attribute definition by ID

Get/api/v1/abac/attributes/:_id![Defense](https://raw.githubusercontent.com/RocketChat/Rocket.Chat-Open-API/main/images/Defense.svg)

- Retrieves a single ABAC attribute definition by ID.
- Returns the attribute key and its allowed values for the definition identified by `_id`.
- Requires the `abac-management` and `manage-abac-admin-room-attributes` permissions.

### Changelog

| Version | Description |
| --- | --- |
| 8.0.0 | Added |
| 8.5.0 | Added the `manage-abac-admin-room-attributes` granular permission requirement. |

Header parametersX-Auth-TokenstringRequired

The `authToken` of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-IdstringRequired

The `userId` of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ

Responses200

OK

<select class='api-response-data' aria-label='Media type'><option value='8e7c1006-729d-4898-81d3-8fc9077a8878'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='be2435ec-be6b-4a4d-a9df-5dc2740e2710'>Success</option>
</select>Success

```json
{
  "success": true,
  "key": "my_department",
  "values": [
    "eng",
    "sales",
    "hr",
    "it"
  ]
}
```

object  successboolean    
keystring    
values Array of string   string    

400

Bad Request

<select class='api-response-data' aria-label='Media type'><option value='48f5d997-9613-49fb-bde7-09095badb72e'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='0db9e8cb-ef9d-49b8-8fd5-ed1bfcbfbd9f'>Attribute not found</option>
</select>Attribute not found

```json
{
  "success": false,
  "error": "error-attribute-not-found"
}
```

object  successboolean    
errorstring    

401

Unauthorized

<select class='api-response-data' aria-label='Media type'><option value='4a585bec-7fa4-401f-a41f-23f4784487a6'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='4a6aff30-1d10-4b23-9ff5-47fb72bfbdec'>Unauthorized login attempt</option>
</select>Unauthorized login attempt

```json
{
  "success": false,
  "error": "error-unauthorized"
}
```

object  successboolean    
errorstring    

403

Forbidden

<select class='api-response-data' aria-label='Media type'><option value='a0f817c4-fdf4-4aba-aa24-17dcda056b7b'>application/json</option>
</select><select class='select-example' aria-label='Media type'><option value='e41649de-d982-46f8-b60b-afcfe4b30a31'>Missing required ABAC permissions</option>
</select>Missing required ABAC permissions

```json
{
  "success": false,
  "error": "error-not-authorized"
}
```

object  successboolean    
errorstring
