I would like to connect to Db2 database with user "appuser1" and then switching session user to "user1".
In Db2 v11.5.7 on Linux I connected to server using SSH.
I connected to database with Db2 super-user and created trusted context:
CREATE TRUSTED CONTEXT tc1 BASED UPON CONNECTION USING SYSTEM AUTHID appuser1 ENABLE ATTRIBUTES (ADDRESS '192.168.100.10') WITH USE FOR realuser WITHOUT AUTHENTICATION"
I connected to database with my appuser1:
CONNECT TO db1 USER appuser1 USING password
Now, how to switch user to "user1" from db2cmd to test switching user?