Oracle9iAS Portal Developer Kit

get_user_id function

Contained in package wwctx_api.

Call this function to get the user ID of the user currently logged in.

Note: This function is similar to the get_user function, but returns the person ID rather than the user name.

function get_user_id

return number;

Version: Oracle Portal 3.0.6.6.5 or later

Returns:

This function returns the person ID of the current user, if logged in.

Exceptions:

If an unknown error occurs, a GENERAL_CONTEXT_EXCEPTION is raised.

Example:

l_id number;
l_id := wwctx_api.get_user_id;

Related topics

The PL/SQL API Reference is part of the Portal Developer Kit on Portal Studio