Act as user via API

Jump to solution
AlexanderEvans
Community Explorer

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. 🙂

0 Likes
1 Solution
jerry_nguyen
Community Coach
Community Coach

@AlexanderEvans 

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

 

View solution in original post