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:
object
User role response object comprising user response parameters.
Show Source
-
count(optional):
number
Count is the current number of records displayed in the response.Example:
1
-
hasMore(optional):
boolean
True indicates that we have more records to be displayed.Example:
false
-
items(optional):
array items
-
limit(optional):
number
Limit implies the maximum number of records which can be displayed in the page.Example:
100
-
links(optional):
array links
Link to the user roles.
Nested Schema : items
Type:
Show Source
array
-
Array of:
object UserRoleResponse
Object comprising all the item parameters.
Nested Schema : links
Type:
array
Link to the user roles.
Show Source
Example:
[
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles"
}
]
Nested Schema : UserRoleResponse
Type:
object
Object comprising all the item parameters.
Show Source
-
description(optional):
string
Description of the user role.Example:
test
-
id(optional):
number
Example:
234
-
links(optional):
array links
Link to the User role items.
-
name(optional):
string
Name of the user roleExample:
admin role
-
permissions(optional):
array permissions
Permissions applicable to a user role.
-
statusFlag(optional):
boolean
Default Value:
true
Status of the user role.Example:true
Nested Schema : permissions
Type:
array
Permissions applicable to a user role.
Show Source
Example:
[
"receiveComSystemMessages",
"attachFilesToMessages",
"emailCompletionCertificates",
"useForums",
"viewReviews",
"addGlobalLCCalendarEvents",
"insertNewReviews",
"viewLearnCenterPages",
"viewInsightReportingReports",
"sendComSystemMessages",
"viewCoursePages",
"useComSystemAddressBook",
"useChatRooms",
"useCommunicationTools",
"modifyReviews",
"printCompletionCertificates",
"viewCertificatesContent",
"viewContent"
]
Nested Schema : UserRoleLinkItem
Type:
Show Source
object
Example:
{
"rel":"canonical",
"href":"https://{url}/learn.rest/v1/learnCenters/178409/userRoles/639"
}