Skip to main content

Permissions

Get all valid permissions

Request

Definition

GET /api/v1/permissions

Headers

  • Authorization required

    Authentication token with privileges to view the resource.

    Bearer {token}

Response

Status codes

Status codeMessage
200"List of permissions"
403"Forbidden"

Body

  • data.permissions.id integer

    Permission ID.

  • data.permissions.name string

    Permission name.

  • data.permissions.description string

    Permission description.

  • data.permissions.needs_service boolean

    Indicates whether the permission should be associated with one or more Domain Group.

Gets user-specific generic permissions

Request

Definition

GET /api/v1/permissions/advances/{user_id}

Headers

  • Authorization required

    An authentication token with privileges to view the resource.

    Bearer {token}

Response

Status codes

Status codeMessage
200"List of user-specific generic permissions"
400"Error retrieving advanced permissions"
403"Forbidden"

Body

{
"data": {
"permission": {
"description": "User can visualize, create, modify and delete rules, either as Application and Source.",
"hosts": [
"test.com"
],
"id": 1,
"name": "Handle rules",
"service_hosts": {
"Test": [
"test.com"
]
},
"services": [
"Test"
]
}
},
"message": "List of user-specific generic permissions",
"status": "ok"
}