How To Check If A User Has Any Admin Role In An EL Expression (Doc ID 2067738.1)

Last updated on SEPTEMBER 19, 2016

Applies to:

Identity Manager - Version 11.1.2.2.7 and later
Information in this document applies to any platform.

Goal

 The documentation in section 30.4.1.1 (http://docs.oracle.com/cd/E40329_01/dev.1112/e27150/uicust.htm#OMDEV5175) mentions that you can check if a user has a certain admin role like this:

#{oimcontext.currentUser.adminRoleMap['OrclOIMSystemAdministrator'] != null}

But how to check if a user has any admin role? So not a particular admin role, but any admin role at all?

Solution

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