Hi Team,
I am using the following Canvas API to fetch roles at both account and course levels:
https://mylearnerjourney.instructure.com/api/v1/accounts/1/roles?state[]=active&show_inherited=true&per_page=100
This API returns all default and custom roles at the account level, but for the course level, I only receive the default roles. I am filtering course roles using:
"is_account_role": false
However, this only returns default roles and does not include the custom roles created in the course context.
I also tried using the course enrollments API:
https://mylearnerjourney.instructure.com/api/v1/courses/116/enrollments
But this also does not return the custom course roles.
Could you please advise on how to fetch custom roles created specifically at the course level using the Canvas API?
Thanks in advance for your help.
Best regards,
Praveen Shukla