

 Amazon Redshift will no longer support the creation of new Python UDFs starting Patch 198. Existing Python UDFs will continue to function until June 30, 2026. For more information, see the [ blog post ](https://aws.amazon.com/blogs/big-data/amazon-redshift-python-user-defined-functions-will-reach-end-of-support-after-june-30-2026/). 

# CURRENT\$1USER\$1ID
<a name="r_CURRENT_USER_ID"></a>

Returns the unique identifier for the Amazon Redshift user logged in to the current session.

## Syntax
<a name="r_CURRENT_USER_ID-synopsis"></a>

```
CURRENT_USER_ID
```

## Return type
<a name="r_CURRENT_USER_ID-return-type"></a>

The CURRENT\$1USER\$1ID function returns an integer. 

## Examples
<a name="r_CURRENT_USER_ID-examples"></a>

The following example returns the user name and current user ID for this session: 

```
select user, current_user_id;

 current_user | current_user_id
--------------+-----------------
   dwuser     |               1
(1 row)
```