Direct Api Endpoint For User Impersonation

Hey, I was wondering if there’s a direct API endpoint to impersonate a user. I’ve gone through the API docs but didn’t find much on it. I also looked under the networks section, but I’m still not sure. Just wanted to get a quick confirmation since my script isn’t working the way I expected.

Also, could you let me know if this is something I should raise with support, or is it more of a development-related issue?

Reverse engineer the Discourse API allows you to script anything that can be done using the user interface.

3 Likes

Yeah, I had already seen that. I just wanted to confirm since the script wasn’t working before, but I managed to fix it now :))

In case someone needs it, it’s f\"{DISCOURSE_BASE_URL}/admin/impersonate\".

2 Likes