user impersonation for qa/dev.

2 votes

avatar

as an administrator, i need to be able to support the role based security, in dev i need to be able to click on my picture and select a user that i need to debug their roles. it would be nice to have this feature built in so i could just click change persona to xyz user and then i could quickly fix the rbac error. i could try to code it into my app but it would be way easier if i could just do 'switch user', click the button (OH look there is the error) code fix (test, oh look it works) push to prod. Obviously i dont want to expose a security issue but, i could delete my domain user from the identity table and recreate his account with bob as the password, but that is alot of trouble.

All Comments (3)

avatar

I've tried to implement this for a system.  I (manually) checked for a non-main/master branch and administrator role, then if all that is true the app respects an EFFECTIVE_ROLES URL Parameter (and has banners on the page explicitly pointing out the change as well as logging out the wazoo).

Having some mechanism for this built-in to PSU would be very helpful for testing, but I can definitely see some land mines.

avatar

ok, so maybe better yet, give me a way to click my profile pick and say apply roles or effective permissions as if i was 'xyz' person. thus giving me everything they would have.

- like let me see the page as if i was this person.

avatar

@Matthew Morrow @mshepard Good suggestion! I usually end up having to create a different account to simulate this in my lab.

Adam Driscoll

PowerShell Expert and Software Architect at Devolutions