Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

C/C++ API Documentation | 2025.2

# ClientApi::GetUser()

Get current user setting.

Virtual? | No |
Class | `ClientApi` |
Arguments | None |
Returns | `const StrPtr &` | a reference to the user setting

## Notes

See `GetClient()` for more about the `StrPtr` return value.

## Example

The following example demonstrates the usage of `GetUser()`.

    ClientApi client;
    printf( "Your username is %s\n", client.GetUser().Text() );

Executing the preceding code as `testuser` produces the following output:

    Your username is testuser

Your search for returned results