Can't get rootAccount.id, account_uuid from LTI handshake
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I have the following xml as part of my LTI request. Please notice the 3 underlined lines below. These 3 lines are not returning any data. Does anyone see a problem?
According to <!-- - Canvas LMS REST API Documentation , this data should always be available.
<lticm:options name="custom_fields">
<lticm:property name="custom_canvas_lms">$lms</lticm:property>
<lticm:property name="custom_canvas_api_domain">\$Canvas.api.domain</lticm:property>
<lticm:property name="custom_canvas_course_id">\$Canvas.course.id</lticm:property>
<lticm:property name="custom_canvas_user_id">\$Canvas.user.id</lticm:property>
<lticm:property name="custom_canvas_user_login_id">\$Canvas.user.loginId</lticm:property>
<lticm:property name="lis_person_contact_email_primary">\$Person.email.primary</lticm:property>
<lticm:property name="user_image">\$User.image</lticm:property>
<lticm:property name="lis_course_offering_sourcedid">\$CourseSection.sourcedId</lticm:property>
<lticm:property name="lis_person_sourcedid">\$Person.sourcedId</lticm:property>
<lticm:property name="membership_roles">\$Canvas.membership.roles</lticm:property>
<lticm:property name="custom_canvas_account_id">\$Canvas.account.id</lticm:property>
<lticm:property name="custom_canvas_user_is_root_account_admin">\$Canvas.user.isRootAccountAdmin</lticm:property>
<lticm:property name="custom_canvas_root_account_id">\$Canvas.rootAccount.id</lticm:property>
<lticm:property name="vnd_canvas_root_account_uuid">\$vnd_canvas_root_account_uuid</lticm:property>
<lticm:property name="vnd_instructure_course_uuid">\$vnd.instructure.Course.uuid</lticm:property>
</lticm:options>
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I thought I'd follow up here and say it there is no actual problem. Just user error . The issue was that I didn't reinstall the LTI after I updated my code. As a result, Canvas had old xml. Everything worked fine when I updated it.