2.1 ADD_USER_ROLE Procedure Signature 1
This procedure assigns a role to a user.
Syntax
APEX_ACL.ADD_USER_ROLE (
    p_application_id  IN NUMBER DEFAULT apex_application.g_flow_id,
    p_user_name       IN VARCHAR2,
    p_role_id         IN NUMBER )Parameters
| Parameter | Description | 
|---|---|
| p_application_id | The application ID for which you want to assign a role to a user. Defaults to the current application. | 
| p_user_name | The case insensitive name of the application user to assign the role to. | 
| p_role_id  | The ID of the role. | 
Example
The following example uses the ADD_USER_ROLE procedure to assign the role ID of 2505704029884282 to the user name called 'SCOTT' in the application 255.
                  
BEGIN
    APEX_ACL.ADD_USER_ROLE (
        p_application_id => 255,
        p_user_name      => 'SCOTT',
        p_role_id        => 2505704029884282 );
END;Parent topic: APEX_ACL