Skip to content

Get the current user's effective permissions

GET
/v1/users/me/permissions
curl --request GET \
--url https://api.adversarial.com/api/v1/users/me/permissions

Returns the user’s roles and a list of all granular permissions they have. Permissions follow the format module:action (e.g., risks:write, incidents:write).

User’s effective permissions

Media typeapplication/json
object
permissions
required

List of granular permissions (format: “module:action”)

Array<string>
roles
required

The role names the user holds in the organization

Array<string>
total_permissions
required

Total number of permissions

integer
Examplegenerated
{
"permissions": [
"example"
],
"roles": [
"example"
],
"total_permissions": 1
}