API Request Permissions

Jump to solution
VincentChecchi
Community Member

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?

1 Solution
VincentChecchi
Community Member
Author

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. 

View solution in original post