Get current user's roles
GET /api/v1/rbac/user/roles Select code sample Fetch cURL
const url = 'https://localhost:8080/api/v1/rbac/user/roles';const options = {method: 'GET', headers: {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/roles \ --header 'Authorization:
'
Return the authenticated user’s organization and project role assignments with derived scope
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”200
Section titled “200 ”User roles with context
Media type application/json object organizationId string roles Array