> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SET USER

<a id="sql-security-impersonation-setuser" />

The `SET USER` (or `SETUSER`) command is simply an alias for the
[EXECUTE AS](/content/sql/security/execute-as#sql-security-impersonation-exec-as) and
[REVERT](/content/sql/security/revert#sql-security-impersonation-revert) commands.

<Info>
  This command is only available through
  [KiSQL](/content/tools/kisql) or database clients configured with
  the [Kinetica ODBC/JDBC driver](/content/connectors/sql_guide#odbc-jdbc).
</Info>

The following commands are equivalent for switching to another user:

```sql title="SET USER Syntax" theme={null}
< < SET USER <user name> > | < EXECUTE AS USER = '<user name>' > >
```

<Note>
  There is no ability to prevent reversion to the original user
  when using the `SET USER` command.  To prevent reversion, see
  [EXECUTE AS](/content/sql/security/execute-as#sql-security-impersonation-exec-as).
</Note>

The following commands are equivalent for switching back to the original user:

```sql title="Revert User Syntax" theme={null}
< SET USER | REVERT >
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.