Get a list of user role in a LearnCenter.
get
/learn.rest/v1/learnCenters/{learnCenterId}/userRoles
Get a list of user role in a LearnCenter.
Request
Path Parameters
-
learnCenterId(required): number
Unique identifier of a LearnCenter.
Query Parameters
-
limit: integer
Specify how many items should be returned in a payload. Must be lower than server default limit size.
-
offset: integer
Specify starting point of the response.Default Value:
0
-
totalResults: 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/json
200 Response
The user roles collection is fetched.
Root Schema : UserRolesResponse
Type:
Show Source
object
-
count:
number
Example:
1
-
hasMore:
boolean
Example:
false
-
items:
array items
-
limit:
number
Example:
100
-
links:
array links
Nested Schema : links
Type:
Show Source
array
Example:
[
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles"
}
]
Nested Schema : UserRoleResponse
Type:
Show Source
object
-
description:
string
Example:
test
-
id:
number
Example:
234
-
links:
array links
-
name:
string
Example:
admin role
-
permissions:
array permissions
-
statusFlag:
boolean
Default Value:
true
Example:true
Nested Schema : permissions
Type:
Show Source
array
Example:
[
"receiveComSystemMessages",
"attachFilesToMessages",
"emailCompletionCertificates",
"useForums",
"viewReviews",
"addGlobalLCCalendarEvents",
"insertNewReviews",
"viewLearnCenterPages",
"viewInsightReportingReports",
"sendComSystemMessages",
"viewCoursePages",
"useComSystemAddressBook",
"useChatRooms",
"useCommunicationTools",
"modifyReviews",
"printCompletionCertificates",
"viewCertificatesContent",
"viewContent"
]
Nested Schema : UserRoleLink
Type:
Show Source
object
Example:
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/639"
}