id from any user row’s role (list_users,
get_user, get_identity), or from list_roles.
The permissions are rendered as grants, not as the raw matrix — a category
the role is denied is left out, and inside an allowed one a yes-or-no
permission the role does not hold is left out too. An absence is therefore
meaningful: a category missing from the result is one the role cannot reach,
which is often the answer to “why can’t this user see X”. The org-chart scope
on statements, requests and commission letters is what decides whose records
the role sees, independently of those grants.
shared_resources is the other half of the picture: resources shared with the
role individually, which reach past its category permissions. A role denied a
whole category can still read specific resources through a share, so read the
two together. Sharing is a live-environment concept, so those are the live
ones.
This tool needs the company-settings roles permission (READ on the Role
company setting).
Parameters
Body
Body
string
required
Id of the role to look up — the id list_roles returns, or the one on the
role of any user row.Response
Body
Body
string
string
Deep link to open this role in the Qobra web app.
string
string
boolean
Whether this is the role newly-created users get unless another one is
picked. Exactly one role of a company is the default.
boolean
Whether this is the company’s built-in Admin role, which holds every
permission and cannot be edited.
integer
Number of non-archived users currently holding this role.
object[]
The role’s permissions, one entry per category it is allowed at all. A
denied category is omitted entirely, so a category absent from this list is
one the role cannot reach — that absence is the answer to “why can’t this
user see X”.
Resources shared with this role individually, on top of what
permissions
grants by category. This is the other half of the answer to ‘why can this
user see X’: a role denied a category can still reach specific resources
through a share. Empty when nothing is shared with the role. Live
environment only.