Get user permissions for governance
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
A caller’s full authorization context, in the shape the governance service consumes
object
object
An organization membership, in the shape the governance service consumes
object
object
object
A project assignment, in the shape the governance service consumes
object
Example
{ "organizationPermissions": { "additionalProperty": [ "manage_org_settings" ] }, "organizations": [ { "roles": [ "organization_owner" ] } ], "permissions": { "additionalProperty": [ "manage_org_settings" ] }, "projectPermissions": { "additionalProperty": [ "manage_org_settings" ] }, "projects": [ { "roles": [ "organization_owner" ] } ]}Could not determine a unique organization for this request
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Unauthorized
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}Internal server error
Error body returned across the auth endpoints; the message is human-readable and not a stable identifier
object
Example
{ "error": "Unauthorized", "error_description": "Invalid token"}