Skip to Main Content

APEX

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!

How to get username after use logging in via Oracle SSO?

DannyS-OracleJun 10 2016 — edited Jun 13 2016

Hi guys, I am very new to Oracle Apex and wondering if someone can help me on this seemingly simple stuff - but I can't find it anywhere -_-a

I am using Oracle SSO to authenticate users before log in, and then I plan to make some pages only visible to some users whose username (xxx@oracle.com) are listed in my ADMIN table. So I will add the following condition (if exist condition) to my admin-only page:

select

   Username

from ADMIN

where Username = :APP_USER

The problem is how can I get the current user's username value in my SQL query? I have tried :APP_USER, &APP_USER, and v('APP_USER') but nothing seemed to return the xxx@oracle.com that I expected. Any help will be appreciated!

Danny

This post has been answered by fac586 on Jun 11 2016
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 11 2016
Added on Jun 10 2016
7 comments
1,907 views