Returns the numeric user ID for the specified user name.
USER_ID( [ user-name ] )
user-name The user name for the user ID you are searching for.
INTEGER
If you do not specify user-name, the ID of the current user is returned.
SQL/2008 Vendor extension.
The following statement returns the GROUPO user ID.
SELECT USER_ID( 'GROUPO' );