Showing posts with label impersonation70. Show all posts
Showing posts with label impersonation70. Show all posts

Assign user right's to impersonate other users

The WebSphere Portal Server V7.0 allows a user to impersonate other users, but in order to do that a user should have rights to impersonate users.

You can assign the right to user using WPS Admin Console like this



You will have to give Can Run As User rights to the user so that he can impersonate other user

Enabling Impersonation Service in WPS 7.0

By default impersonation is turned off and you will have to follow these steps to turn it on

  1. Log into WAS Admin Console for WebSphere Portal Server

  2. Go to the Resource Environment Provider -< WP_AuthenticationService -< Custom Properties and add a custom property like this


    Name: logout.explicit.filterchain
    Value:com.ibm.wps.auth.impersonation.impl.ImpersonationLogoutFilter


  3. Go to the Resource ENvironment Provier -< WP_PortletServiceRegistryService -< Custom properties page and add a property like this


    Name : jndi.com.ibm.portal.portlet.service.impersonation.ImpersonationService
    Value: com.ibm.wps.portletservice.impersonation.impl.ImpersonationServiceImpl


  4. Save your changes and restart the portal server

Out of box Impersonation portlet with WebSphere Portal 7.0

The WebSphere Portal Server started supporting impersonation from version 6.1.5, but in the V6.1.5 you were supposed to create your own impersonation portlet and use ImpersonationService provided by portal for impersonating.

But starting from Version 7.0, WPS ships a Out of box Impersonation portlet. This portlet is pretty simple, it lets you search for a user and then once you click on the name of the user it starts impersonating that user.

I just created a simple page and added Impersonation portlet to it like this, i want to impersonate "Sunil Patil" so i searched for it



Now when i click on the user name the impersonation session starts, which means the user is logged in as impersonated user which is "Sunil Patil" in my case and it takes user to Home page like this



I will have to logout from the portal before i go back to the impersonation portlet, if i try going to the impersonation portlet i get this error