You can obtain a list of who has impersonated other users, as well as the reason for the impersonation (if added), in two ways:
Searching in DDA
select created, reason, u1.user_id, u2.user_id from sessions_impersonated inner join users u1 on sessions_impersonated.impersonator_pk1 = u1.pk1 inner join users u2 on sessions_impersonated.impersonated_pk1 = u2.pk1 order by created desc;
Queries are offered without any kind of guarantee. The code worked when we created this articule, but due to changes in a constantly evolving software, we cannot assure its accuracy at the moment in time when is tested in your system.
Using the API
Using the API with this endpoint, you can also get the list of impersonations. Remember that the results are paginated:
https://miservidor.com/learn/api/public/v1/loginAs/sessions
Comments
0 comments
Please sign in to leave a comment.