+

Search Tips   |   Advanced Search

Developing a custom portlet

We can use the default Impersonation portlet to impersonate specific users. Alternatively, we can create a resource environment provider to enable impersonation and develop a custom portlet for impersonating users.


Sample code

If we do not want to use the HCL WebSphere Portal Impersonation portlet, use the following sample to develop a portlet to impersonate users:

We can enter the information for the user we want to impersonate in the stringuserDN. Alternatively, we can use the PUMA SPI User object.

Note: The impersonation feature becomes active with the next request.

Parent topic: Administering user impersonation