> ## 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

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

> [!NOTE]
>
> This command is only available through
> [KiSQL](https://docs.kinetica.com/content/tools/kisql.md) or database clients configured with
> the [Kinetica JDBC driver](https://docs.kinetica.com/content/connectors/sql_guide.md#jdbc).

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](https://docs.kinetica.com/content/sql/security/execute-as.md#sql-security-impersonation-exec-as).

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.