My Oracle Support Banner

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

Last updated on SEPTEMBER 22, 2017

Applies to:

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


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.

ADFContext.getCurrent().getSecurityContext().getUserProfile().getUserID(); // reuturns null
ADFContext.getCurrent().getSecurityContext().getUserRoles(); // returns anonymous-role


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.