Home Discussions Questions & Answers User ID Lookup by Name using XXEN_UTIL

User ID Lookup by Name using XXEN_UTIL

Avatar photoCustomer February 16, 2024 at 4:08 pm

I need a quick utility function to look up an Oracle user’s ID (`user_id`) based on their username.

Viewing 4 reply threads
  • Author
    Replies
    • Support February 18, 2024 at 12:27 pm  

      The function **`XXEN_UTIL.USER_ID(p_user_name in varchar2)`** returns the user ID based on the provided user name.

    • Avatar photoCustomer February 20, 2024 at 2:36 pm  

      What value is returned for the SYSADMIN user?

    • Support February 22, 2024 at 3:21 am  

      The query `select xxen_util.user_id(‘SYSADMIN’) from dual` returns `0`.

    • Avatar photoCustomer February 23, 2024 at 6:26 pm  

      If I am building an API integration, is there a way to initialize the application context session?

    • Support February 24, 2024 at 6:32 am  

      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.

Viewing 4 reply threads
  • You must be logged in to reply to this post.

Login with: