Expand my Community achievements bar.

manank71376227
manank71376227
Offline
  • Hi,System user scenario is working fine. We are able to get session. But when it comes to unlock page by impersonating user, it is failing.Could you please let me know what permissions are required for user to impersonate any other user. Also, user can be multiple, so which user has locked page that...

    Type

    Discussions

    Views

    6.9K

    Likes

    0

    Replies

    0
  • Hi,In our case we have to impersonate user session who has locked page. so we are doing this by taking admin session.                adminSession = repository.loginAdministrative(null);                userSession = adminSession.impersonate(new SimpleCredentials(lockedByUser, "".toCharArray()));     ...

    Type

    Discussions

    Views

    7.6K

    Likes

    0

    Replies

    5
  • Thanks for your response.Is there any difference between admin user and administrators group user from privileges perspective.As I have seen in impersonation functionality, Admin user can see all the user to impersonate but if we create user with administrators group privileges, it will not be able ...

    Type

    Discussions

    Views

    7.6K

    Likes

    0

    Replies

    1
  • Hi,I'm getting administration session as seen below but this method is deprecated:@Reference private SlingRepository repository;adminSession = repository.loginAdministrative(null);Also. another way to get session is:Session session = repository.login(new SimpleCredentials("admin","admin".toCharArray...

    Type

    Discussions

    Views

    17.1K

    Likes

    3

    Replies

    14
Top badges earned by manank71376227
Customize the badges you want to showcase on your profile
page footer