Determining the security label of a user

DB2® provides several built-in session variables that contain information about the server and application process. You can obtain the value of a built-in session variable by invoking the GETVARIABLE command with the name of the built-in session variable.

One of the built-in session variables is the user's security label. You can issue the GETVARIABLE('SYSIBM.SECLABEL') command to obtain the security label of a user.