Skip to Main Content

Cloud Security, Observability and Administration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

The EL function 'Context.userInRole' return null while user already have indicated roles in sandbox of oracle fusion

WeitaoJul 31 2023

Hi all

I wanted to use sandbox to hide some fields in specific role but it doesn't work.

e.g

when I add the EL like '#{securityContext.userInRole['AVI_HR_ASSISTANT_CUSTOM']==ture?'true':'false'} in lable's EL,and I am sure current user has the role'AVI_HR_ASSISTANT_CUSTOM'. But the labe shows false.

when I changed the EL to '#{securityContext.userInRole['AVI_HR_ASSISTANT_CUSTOM']==false?'false':'true'} in lable's EL, the labe shows true.

It seems the function securityContext.userInRole always return null. Do you know why?

Thanks in advance.

This post has been answered by Weitao on Aug 1 2023
Jump to Answer
Comments
Post Details
Added on Jul 31 2023
2 comments
849 views