v1
latestOpenAPI 3.0.22026-07-175961673.3 KBAuthentication & Authorization
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",
"*",
"*/*"
]
]
}
get/permissions
Response
Successful operation