Get a list of users mapped to a user role in a learnCenter.

get

/learn.rest/v1/learnCenters/{learnCenterId}/userRoles/{userRoleId}/users

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

Users collection fetched.
Body ()
Root Schema : UsersResponse
Type: object
Show Source
Example:
{
    "items":[
        {
            "id":628706,
            "roleId":640,
            "user":{
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/users/628706"
                    }
                ]
            },
            "userRole":{
                "links":[
                    {
                        "rel":"canonical",
                        "href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/640"
                    }
                ]
            },
            "statusFlag":true,
            "links":[
                {
                    "rel":"canonical",
                    "href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/640/users/628706"
                }
            ]
        },
        {
            "...":null
        }
    ],
    "limit":100,
    "count":100,
    "hasMore":true,
    "links":[
        {
            "rel":"canonical",
            "href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/640/users"
        }
    ]
}
Nested Schema : items
Type: array
Show Source
Nested Schema : UserRoleUserResponse
Type: object
Show Source
Nested Schema : user
Type: object
Show Source
Nested Schema : userRole
Type: object
Show Source
Nested Schema : UserLinkItem
Type: object
Object of the User Link Item.
Show Source
Example:
{
    "rel":"canonical",
    "href":"{url}/learn.rest/v1/users/456"
}
Nested Schema : UserRoleLinkItem
Type: object
Show Source
Example:
{
    "rel":"canonical",
    "href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/639"
}

401 Response

Authentication refused for provided credentials or the token is invalid.
Headers

500 Response

Internal server error.
Back to Top