v1

latestOpenAPI 3.0.1MPL 2.02026-07-17211027.3 KB
users
rbac

Fetch a user's permissions

get/api/v1beta1/users/{username}/permissions

Query parameters

cursorstring base64

Opaque cursor used for pagination. Can be obtained from the next_cursor field in PageInfo.

limitinteger

Numbers of items to return when paginating.

Response

User permissions

countinteger required

Number of items in the current page

next_cursorstring required

Opaque cursor to access the next page. Can be null if there are no more pages

offsetinteger

Offset representing the current page

Example response

{
  "next_cursor": "V2h5IGFyZSB5b3UgdHJ5aW5nIHRvIGRlY29kZSBhIGN1cnNvcj8gSSB0b2xkIHlvdSBpdCB3YXMgb3BhcXVlIDopCg==",
  "items": [
    {
      "subject": "user:root",
      "object": "docker_image:example",
      "action": "read"
    }
  ]
}