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
-
learnCenterId: number
Unique identifier of a LearnCenter.
-
userRoleId: number
Unique identifier of a user role.
Query Parameters
-
limit(optional): integer
Specify how many items should be returned in a payload. Must be lower than server default limit size.
-
offset(optional): integer
Specify starting point of the response.Default Value:
0
-
totalResults(optional): boolean
If set to true, the payload includes a total number of rows that satisfies the request. Use of this parameter determines if the 'last' link is displayed for a pageable collection.
Response
Supported Media Types
- application/xml
- application/json
200 Response
Users collection fetched.
Root Schema : UsersResponse
Type:
Show Source
object
-
count(optional):
number
-
hasMore(optional):
boolean
-
items(optional):
array items
-
limit(optional):
number
-
links(optional):
array links
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 : UserRoleUserResponse
Type:
Show Source
object
-
createdDate(optional):
string
Example:
2019-02-04T10:46:21Z
-
links(optional):
array links
-
roleId(optional):
number
Example:
640
-
statusFlag(optional):
boolean
Example:
true
-
user(optional):
object user
-
userId(optional):
number
Example:
123123
-
userRole(optional):
object userRole
Nested Schema : links
Type:
Show Source
array
Example:
[
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/123/users"
}
]
Nested Schema : links
Type:
Show Source
array
-
Array of:
object UserLinkItem
Object of the User Link Item.
Nested Schema : UserLinkItem
Type:
object
Object of the User Link Item.
Show Source
-
href(optional):
string
Example:
{url}/learn.rest/v1/users/456
-
rel(optional):
string
Example:
canonical
Example:
{
"rel":"canonical",
"href":"{url}/learn.rest/v1/users/456"
}
Nested Schema : UserRoleLinkItem
Type:
Show Source
object
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.