Act as user via API
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2024
05:23 PM
I'm working on a "control center" app for common work tasks. I need a function that takes in a user, then opens a web browser with the signed-in admin acting as that user. I'm scanning all through the docs and can't find any way to activate the "act as". Is there any way to do this via API? If not, any other ideas? Pretty new to Python so any module recommendations would be pretty neat too. 🙂
Solved! Go to Solution.
1 Solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-16-2024
06:02 PM
You can masquerade (or act as) when calling an API by adding this parameter "as_user_id" to your request. You can read more about Masquerading through API here: 📔https://canvas.instructure.com/doc/api/file.masquerading.html