My Oracle Support Banner

Portletrequest.getRemoteUser(), Portletrequest.getUserPrincipal() and Portletrequest.isUserInRole() Return Null Value In WebCenter PS3+ (Doc ID 1314948.1)

Last updated on NOVEMBER 03, 2022

Applies to:

Oracle WebCenter Portal - Version to [Release 11g]
Information in this document applies to any platform.


Portletrequest.getRemoteUser(), Portletrequest.getUserPrincipal() and Portletrequest.isUserInRole() return NULL value in WebCenter PS3.


The issue can be reproduced at will with the following steps:

  1. Install WebCenter Suite or above.

  2. Create a simple JSR 286 portlet.
    In the doView method of the portlet class make a call to any of the following APIs and output it to System out:


  3. Build the portlets and deploy them as a WSRP producer to the WC_Portlet managed server.

  4. Register the portlet producer with WebCenter Spaces.

  5. Login to WebCenter Spaces and place the portlet on a page.
    Review system output.
    You will see the above APIs return NULL value.


Upgraded a Producer application from WebCenter PS2 to PS3 or higher.
This was working fine in previous release.


To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.