Names and Role
A NamesAndRoleContext object looks like:
// An abbreviated representation of an LTI Context
{
// LTI Context unique identifier
"id": "4dde05e8ca1973bcca9bffc13e1548820eee93a3",
// LTI Context short name or code
"label": "CS-101",
// LTI Context full name
"title": "Computer Science 101"
}A NamesAndRoleMessage object looks like:
// Additional attributes which would appear in the LTI launch message were this
// member to click the specified resource link (`rlid` query parameter)
{
// The type of LTI message being described. Always set to
// 'LtiResourceLinkRequest'
"https://purl.imsglobal.org/spec/lti/claim/message_type": "LtiResourceLinkRequest",
// The member's preferred locale
"locale": "en",
// The member's API ID
"https://www.instructure.com/canvas_user_id": 1,
// The member's primary login username
"https://www.instructure.com/canvas_user_login_id": "showell@school.edu",
// Expanded LTI custom parameters that pertain to the member (as opposed to the
// Context)
"https://purl.imsglobal.org/spec/lti/claim/custom": {"message_locale":"en","person_address_timezone":"America\/Denver"}
}A NamesAndRoleMembership object looks like:
A NamesAndRoleMemberships object looks like:
List Course Memberships
GET /api/lti/courses/:course_id/names_and_roles
Request Parameters:
Parameter
Type
Description
List Group Memberships
GET /api/lti/groups/:group_id/names_and_roles
Request Parameters:
Parameter
Type
Description
Last updated
Was this helpful?