Get user permissions for governance
GET
/api/v1/rbac/user/permissions
const url = 'https://localhost:8080/api/v1/rbac/user/permissions';const options = {method: 'GET', headers: {Authorization: '<Authorization>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://localhost:8080/api/v1/rbac/user/permissions \ --header 'Authorization: <Authorization>'Return the authenticated user’s organization memberships, project assignments, and effective permissions in the governance-service contract format
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”User permissions and context
Media type application/json
object
email
string
isSystemAdmin
boolean
joinedAt
string
lastLoginAt
string
name
string
organizations
Array<object>
object
organizationId
integer
roles
Array<string>
permissions
object
key
additional properties
Array<string>
pictureUrl
string
projects
Array<object>
object
organizationId
integer
projectId
integer
roles
Array<string>
status
boolean
userId
string
Example
{ "organizations": [ { "roles": [ "organization_owner" ] } ], "permissions": { "additionalProperty": [ "manage_org_settings" ] }, "projects": [ { "roles": [ "organization_owner" ] } ]}Could not determine a unique organization for this request
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Media type application/json
object
error
string
error_description
string
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}