Get user permissions
This API returns a list of permissions for the user that is currently logged in.
Example: Assume the following RBAC policy, and users alice and bob:
p, role:dev, namespaces, read, *
p, role:dev, database-engines, *, */*
p, role:dev, database-clusters, *, */*
p, bob, database-clusters, *, */*
g, alice, role:dev
The API will return the following permissions for alice:
{
"permissions": [
[
"alice",
"namespaces",
"read",
"*"
],
[
"alice",
"database-engines",
"*",
"*/*"
],
[
"alice",
"database-clusters",
"*",
"*/*"
]
]
}
And the following permissions for bob:
{
"permissions": [
[
"bob",
"database-clusters",
"*",
"*/*"
]
]
}
Response
Successful operation
Changes
Changed in 6 of the 50 revisions of this API.24
- ○
the response property
enabledbecame required for the status200response-property-became-required
- ○
- ○
added the optional property
enabledto the response with the200statusresponse-optional-property-added
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
- ▲
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 30 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲