User ID Lookup by Name using XXEN_UTIL
I need a quick utility function to look up an Oracle user’s ID (`user_id`) based on their username.
5 replies
- You must be logged in to reply to this post.
Sign in with LinkedIn or Google to take part.
Home › Discussions › Questions & Answers › User ID Lookup by Name using XXEN_UTIL
Customer · · Questions & Answers · 5 replies
I need a quick utility function to look up an Oracle user’s ID (`user_id`) based on their username.
The function **`XXEN_UTIL.USER_ID(p_user_name in varchar2)`** returns the user ID based on the provided user name.
What value is returned for the SYSADMIN user?
The query `select xxen_util.user_id(‘SYSADMIN’) from dual` returns `0`.
If I am building an API integration, is there a way to initialize the application context session?
Yes, before calling submission APIs, you must initialize the application context session using `xxen_report.apps_initialize`, providing the user name, responsibility key, and responsibility application short code.
Sign in with LinkedIn or Google to take part.