12.2. getUserPermissions
获取指定用户的权限。
GET /api/v1/repository/{repository}/permissions/user/{username}
授权: oauth2_implicit (repo:admin)
路径参数
类型 | Name | 描述 | 模式 |
---|---|---|---|
path |
需要 的用户名 | 权限应用到的用户的用户名 | 字符串 |
path |
需要 仓库 | 存储库的完整路径。例如 namespace/name | 字符串 |
响应
示例命令
curl -X GET \ -H "Authorization: Bearer <access_token>" \ "https://quay-server.example.com/api/v1/repository/<repository_path>/permissions/user/<username>"
$ curl -X GET \
-H "Authorization: Bearer <access_token>" \
"https://quay-server.example.com/api/v1/repository/<repository_path>/permissions/user/<username>"