How to set rep:impersonators property on a user
Hi All,
I am using AEM 6.3 & I have a use case where User A needs to be setup as impersonator on user B using api code. In order to achieve this, I need to setup rep:impersonators property on user B.
I have tried couple of options but none of these seems to be setting this property on user:
1. Added User A to user-administrators group and then tried to call grantimpersonators method on user B using user A but it always returns false.
2. Created a system user and added it to users-administrators group and then using user session tried to set rep:impersonators property on user B. But this also does not work
Can you please assist on how can I setup the impersonators property on any user using api and what are the prerequisites in order to be able to add this property successfully.
THanks,
Rajeev