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 Team,
I am creating one app where I am using canvas LMS Rest Apis but right now I have created the access token manually which I am using to get the data from APIs .
but if I wanted to get data for specific users then how I can generate the token for users automatically? I don't want to create tokens manually.
Solved! Go to Solution.
You can use "Masquerading" to send API requests as another user instead of creating an access token for that user, this is useful when you wanted to perform an action on behalf of a user
https://canvas.instructure.com/doc/api/file.masquerading.html
However, if your account is an Admin, you can get data for any users without their API token.
If you're designing an app for users to utilise API, you will need to implement OAuth2, which requires a user to login to Canvas using their credentials then it will generate the necessary API token for the user to perform API requests.
https://canvas.instructure.com/doc/api/file.oauth.html
You can use "Masquerading" to send API requests as another user instead of creating an access token for that user, this is useful when you wanted to perform an action on behalf of a user
https://canvas.instructure.com/doc/api/file.masquerading.html
However, if your account is an Admin, you can get data for any users without their API token.
If you're designing an app for users to utilise API, you will need to implement OAuth2, which requires a user to login to Canvas using their credentials then it will generate the necessary API token for the user to perform API requests.
https://canvas.instructure.com/doc/api/file.oauth.html
Thanks @jerry
you have written if you are an admin you can access the data of any users, can you please explain how i will get all user's data as an access token is required to get the and as per access token given response data generated?
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