1. Docs
  2. API Reference
  3. List the current user's own Account-governance capabilities

List the current user's own Account-governance capabilities

GET/portal/v1/accounts/{accountSlug}/me/governance-capabilities

The capabilities the signed-in user holds for the Workspace's account-level pages in this Account, as entries from the capability catalog. Owners hold every account-wide capability, including the ones only an owner can hold. Other users hold what their active account-wide administrator roles grant, where manage also grants the matching view. Capabilities that belong to the Developer Console are left out, and so are Environment-level capabilities. Callers need only active membership of the Account, no capability.

Authentication

Bearer TokenAuthorization

JWT access token. Never send alongside X-API-Key: a request carrying both is refused.

Path Parameters

accountSlugstring Required

The Account's slug. An unknown one answers 404.

Responses

application/json

  • itemsAdminCapabilityDto[]*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

application/json

  • errorApiErrorBodyDto*

Returned object

Request
curl -X GET "https://auth.canopy-io.com/portal/v1/accounts/value/me/governance-capabilities" \
  -H "Authorization: Bearer $CANOPY_TOKEN"
Response
{
  "items": [
    {
      "key": "string",
      "description": "string",
      "category": "string",
      "product": "console",
      "scope": "account",
      "ownerOnly": false
    }
  ]
}
Related endpoints
GETResolve the current user's product access and landing
GETList the current user's own Developer Console capabilities
Was this page helpful?

Tell us how we can improve this guide.