The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December.
Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
Hey everyone
I am creating an LTI1.3 Tool and I have a question surrounding the names and roles lti service.
As far as i know, there are 2 names and roles api endpoints in canvas:
/api/lti/courses/:course_id/names_and_roles
/api/lti/groups/:group_id/names_and_roles
However, how does one find all the group_id's in each class, to call the /lti/groups request?
I want to keep my tool as lti1.3 and non-platform specific, so I'd rather not use Canvas specific api requests.
Do any of you fellow developers have any ideas, thoughts or solutions regarding this problem?
I'd be happy with any help.
Thanks and regards,
Atli Gislason
You could probably use LTI Variable Substitutions https://canvas.instructure.com/doc/api/file.tools_variable_substitutions.html specifically adding a custom variable like
group_ids=$com.instructure.Course.groupIds
Haven't tested it but it looks like it returns all the group ids in the launched course
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in