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!
Hi there, I'm working with a school to extract grades data from canvas, but we have found a need to extract some additional student data that I think would be found in the GET /api/v1/users/:id API or the GET /api/v1/users/:id/profile API. However, I get a "user not authorized to perform that action" message when I try to request it. Is there a specific permission I should request from the schools Canvas Admin?
Solved! Go to Solution.
@hannah3 ,
Information about the user would be maintained at the account level. Canvas has a PDF document called Canvas Account Role Permissions that details what the roles are and what each one does. It is sometimes not as simple as saying you need X permission. You might also need C and Q because of the way they relate. For example, the ability to read SIS information is different from the one to act as a user. There is a setting to see the list of users, the but the ability to see the email address is a different permission. Some information is only available to the current user, which means that you need to use the as_user_id to obtain the information. Analytics has its own permissions.
Since you didn't say which items you were specifically trying to access, a specific answer is going to be difficult to provide -- other than an admin account with full rights can do about anything, which is why they may not want to give you that.
There is a companion document Canvas Course Role Permissions that describes the permissions for information within a course.
Some permissions, like Edit Grades or View all Grades are available in both the account and course permissions.
Hi, @hannah3 ā, I don't have an immediate answer for you, but I've moved your question to the Canvas Developersā group where it's more likely to get quick attention from your peers, and I've also shared it with the Canvas Adminsā group to get additional sets of eyes on it. If you're not yet a member of these groups, you can easily join by selecting Join Group from the Actions dropdown at the upper right of the group home page.
What role does the user making the API call have?
@hannah3 ,
Information about the user would be maintained at the account level. Canvas has a PDF document called Canvas Account Role Permissions that details what the roles are and what each one does. It is sometimes not as simple as saying you need X permission. You might also need C and Q because of the way they relate. For example, the ability to read SIS information is different from the one to act as a user. There is a setting to see the list of users, the but the ability to see the email address is a different permission. Some information is only available to the current user, which means that you need to use the as_user_id to obtain the information. Analytics has its own permissions.
Since you didn't say which items you were specifically trying to access, a specific answer is going to be difficult to provide -- other than an admin account with full rights can do about anything, which is why they may not want to give you that.
There is a companion document Canvas Course Role Permissions that describes the permissions for information within a course.
Some permissions, like Edit Grades or View all Grades are available in both the account and course permissions.
Hi James,
Thanks for the quick response. I think the issue was exactly as you described where I had permission to access the SIS information but not act as a user, therefore I was not able to see the users profile or other attributes. I contacted the school administrator and they seemed to know what I was talking about and changed my permissions, that document is very helpful though and I will use it for future reference!
I'm glad you got it figured out, @hannah3 .
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