Get a list of user role in a LearnCenter.
get
/learn.rest/v1/learnCenters/{learnCenterId}/userRoles
Request
Path Parameters
-
learnCenterId: number
Unique identifier of a LearnCenter.
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/json
200 Response
The user roles collection is fetched.
Root Schema : UserRolesResponse
Type:
Show Source
object
-
count(optional):
number
Example:
1
-
hasMore(optional):
boolean
Example:
false
-
items(optional):
array items
-
limit(optional):
number
Example:
100
-
links(optional):
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(optional):
string
Example:
test
-
id(optional):
number
Example:
234
-
links(optional):
array links
-
name(optional):
string
Example:
admin role
-
permissions(optional):
array permissions
-
statusFlag(optional):
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"
}