Get all users.

get

/learn.rest/v1/users

Request

Query Parameters
  • Specify how many items should be returned in a payload. Must be lower than server default limit size.
  • Specify starting point of the response.
    Default Value: 0
  • Search through users collection items. Use Mongo DB Query format. Searchable properties are - username, email, employeeId. example ?q={email:{$eq: 'user@example.com'}}
  • If set to true, the payload includes the total number of rows that satisfies the request. Use of this parameter determines if the 'last' link is displayed for a pageable collection.
Security
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