Home / API Documentation / Platform management / Users / Users / View the list of roles owned by the user

*View the list of roles owned by the user

Requests

HTTP request

GET /auth/v1/usersroles

get users roles

Responses

Content-Type application/json

Status code: 200

OK

Sample response

Fetch Users RolesList

{
   "apiVersion": "auth.alauda.io/v1",
   "items": [
     {
       "name": "0308a145f3aa24e0d0e7919563adddac",
       "namespaces": {},
       "roles": [
         "acp-project-admin"
       ]
     },
     {
       "name": "0308a145f3aa24e0d0e7919563adddef",
       "namespaces": {
         "acp-namespace-developer": [
           {
             "cluster": "global",
             "namespace": "ns01"
           },
           {
             "cluster": "global",
             "namespace": "ns02"
           }
         ],
         "acp-project-admin": []
       },
       "roles": [
         "acp-project-admin",
         "acp-namespace-developer"
       ]
     }
   ],
   "kind": "UserRoleList",
   "metadata": {}
 }

Parameters

Name Type Description
apiVersion string See common parameters
items array result of RolesList
Path: items
items[] object result of RolesList
Path: items[]
items[].name string the user resources name
Path: items[].name
items[].roles array the roles to which the user is bound
Path: items[].roles
items[].roles[] string result of RolesList
Path: items[].roles[]
kind string See common parameters
metadata object See common parameters

Other status codes