API Request Permissions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024
12:47 PM
I am developing a web tool that utilizes cURL with developer key to access the Canvas API. I am currently able to login and use some API queries. However, I am currently trying to gain access to "v1/users/{user_id}/enrollments?include[]=last_activity_at" and I am getting an "unauthorized user" error. Does anyone know what the minimal permissions are to gain access to a users "last_activity_at" variable?
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2024
02:05 PM
I discovered the answer to this question. If you want to access the variable "last_activity_at" you should go through this api call "v1/courses/{course_id}/users
?enrollment_type={"Your Enrollment String(student or teacher)"}&include[]=enrollments". This requires the minimal permission to Manage a Course.