Set temporary `frappe.session.user`

I have the uid "Administrator" and I want to switch to another uid “” to test.

Since that "Administrator" has all the rights and permissions, is there anyway to set the “Administrator” to have a temporary frappe.session.user == "" so that I can test the user instead of logout "Administrator" and login the uid "" ?

Any idea?

Hi @SinChan4896,

I don’t think, it is possible. If you want to test user role permission then login with a different browser.
And if you want to you in the same browser then use an incognito window.

Thank You!

Alright, thanks for the clarification!