Get the calling user’s role and permissions
Get the calling user’s role and permissions
Returns the user’s role and the flat list of permissions that role grants in the active organisation. Uses an in-memory Casbin lookup with zero database cost; suitable for show/hide-UI logic on every page load.
Authentication
AuthorizationBearer
Bearer authentication of the form Bearer <token>, where token is your auth token.
Response
The user’s role and permissions.
role
Role the user holds in the active organisation, namespace-stripped.
permissions
Flat list of permission strings the role grants in the active organisation.