DB2 10.5 for Linux, UNIX, and Windows

REVOKE (SETSESSIONUSER privilege) statement

This form of the REVOKE statement revokes one or more SETSESSIONUSER privileges from one or more authorization IDs.

Invocation

This statement can be embedded in an application program or issued through the use of dynamic SQL statements. It is an executable statement that can be dynamically prepared only if DYNAMICRULES run behavior is in effect for the package (SQLSTATE 42509).

Authorization

The privileges held by the authorization ID of the statement must include SECADM authority.

Syntax

Read syntax diagramSkip visual syntax diagram
                               .-,------------------------------------.           
                               V                                      |           
>>-REVOKE SETSESSIONUSER ON------+-USER--session-authorization-name-+-+----FROM-->
                                 '-PUBLIC---------------------------'             

   .-,-----------------------------.   
   V                               |   
>----+-USER--+--authorization-name-+---------------------------><
     '-GROUP-'                         

Description

SETSESSIONUSER ON
Revokes the privilege to assume the identity of a new authorization ID.
USER session-authorization-name
Specifies the authorization ID that the authorization-name is able to assume, using the SET SESSION AUTHORIZATION statement. The session-authorization-name must identify a user that the authorization-name can assume, not a group (SQLSTATE 42504).
PUBLIC
Specifies that all privileges to set the session authorization will be revoked.
FROM
Specifies from whom the privilege is revoked.
USER
Specifies that the authorization-name identifies a user.
GROUP
Specifies that the authorization-name identifies a group name.
authorization-name,...
Lists the authorization IDs of one or more users or groups.

The list of authorization IDs cannot include the authorization ID of the user issuing the statement (SQLSTATE 42502).

Examples