Unable to retrieve userid or role from a SecurityContext in ADF code (Doc ID 2129729.1)

Last updated on APRIL 22, 2016

Applies to:

Oracle Business Process Management Suite - Version 11.1.1.7.0 and later
Oracle JDeveloper - Version 11.1.1.7.0 and later
Information in this document applies to any platform.

Symptoms

User has a BPM application with human task and ADF forms. When trying get the user ID or security role out of the security context using the ADF code below in a backing bean, the user id returned is null  and the role is anonymous.

Cause

Sign In with your My Oracle Support account

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

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms