Get ABAC attribute definition by ID

Prev Next
Get
/api/v1/abac/attributes/:_id
  • Retrieves a single ABAC attribute definition by ID.
  • Returns the attribute key and its allowed values for the definition identified by _id.
Header parameters
X-Auth-Token
stringRequired

The authToken of the authenticated user.

ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired

The userId of the authenticated user.

ExamplerbAXPnMktTFbNpwtJ
Responses
200

OK

Success
{
  "success": true,
  "key": "my_department",
  "values": [
    "eng",
    "sales",
    "hr",
    "it"
  ]
}
object
success
boolean
key
string
values
Array of string
string
400

Bad Request

Attribute not found
{
  "success": false,
  "error": "error-attribute-not-found"
}
object
success
boolean
error
string
401

Unauthorized

Unauthorized login attempt
{
  "success": false,
  "error": "error-unauthorized"
}
object
success
boolean
error
string
403

Forbidden

No "abac-management"
{
  "success": false,
  "error": "error-not-authorized"
}
object
success
boolean
error
string