Hey 🙂
I have a use case where I have a privileged user and in a certain session I would like to demote him to a less privileged role.
In first intuition the impersonation should solve this but the issue is that the session would count for the user we have impersonated too and I want to count the session for the user that impersonating.
What is the best practice for this situation?
Thanks in advance!
a
Atharva Joshi
12/15/2025, 10:17 AM
So you want to demote him to a less privileged role temporarily?
r
Roei Levy
12/15/2025, 10:18 AM
exactly
a
Atharva Joshi
12/15/2025, 10:22 AM
What you can do is
1. Store original roles before demotion
2. Set temporary lower-privileged roles
3. Restore original roles when needed
Atharva Joshi
12/15/2025, 10:24 AM
youll need to use a workaround as theres no supported feature for this yet
r
Roei Levy
12/15/2025, 10:52 AM
What workarounds? Updating the user roles manually?