Grants the ability for one user to impersonate another user and to administer the SET USER system privilege.
GRANT SET USER ( target_users_list | ANY | ANY WITH ROLES target_roles_list ) TO userID [,...] [ WITH ADMIN [ ONLY ] OPTION | WITH NO ADMIN OPTION ]
GRANT SET USER (Bob, Sam, Peter) TO (Sally, Laurel)
GRANT SET USER (ANY) TO Mary WITH ADMIN ONLY OPTION
GRANT SET USER (ANY WITH ROLES Role1, Role2) TO Steve, Joe
If no clause is specified, ANY is used by default. If no administrative clause is specified in the grant statement, the WITH NO ADMIN OPTION clause is used.
If regranting the SET USER system privilege to a user, the effect of the regrant is cumulative.
By default, the SET USER system privilege is granted to the SYS_AUTH_SSO_ROLE compatibility role with the WITH NO ADMIN OPTION clause, if they exist.
The granting of the SET USER system privilege to a user only grants the potential to impersonate another user. Validation of the at-least criteria required to successfully impersonate another user does no occur until the SETUSER statement is issued.