18.20 SET_USER Procedure
This procedure sets the APEX_APPLICATION.G_USER
global variable. SET_USER
requires the parameter P_USER
(VARCHAR2
) which defines a user ID.
Syntax
APEX_CUSTOM_AUTH.SET_USER (
p_user IN VARCHAR2 )
Parameters
Parameter | Description |
---|---|
p_user
|
The user ID to be registered. |
Example
In the following example, if the current application user is NOBODY, then JOHN.DOE is registered as the application user.
IF V('APP_USER') = 'NOBODY' THEN
APEX_CUSTOM_AUTH.SET_USER('JOHN.DOE');
END IF;
Parent topic: APEX_CUSTOM_AUTH