---
name: "SDL_GetGDKDefaultUser"
section: "3"
platform: "linux"
package: "libsdl3-doc"
version: "3.2.10+ds-1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/SDL_GetGDKDefaultUser"
---

# SDL\_GetGDKDefaultUser(3)

Gets a reference to the default user handle for GDK.

## NAME

SDL\_GetGDKDefaultUser - Gets a reference to the default user handle for GDK.

## HEADER FILE

Defined in SDL3/SDL\_system.h

## SYNOPSIS

```
#include "SDL3/SDL.h"
```

**bool SDL\_GetGDKDefaultUser(XUserHandle \*outUserHandle);**

## DESCRIPTION

This is effectively a synchronous version of XUserAddAsync, which always prefers the default user and allows a sign-in UI.

## FUNCTION PARAMETERS

- *outUserHandle*

  a pointer to be filled in with the default user handle.

## RETURN VALUE

Returns true if success or false on failure; call

**SDL\_GetError** () for more information.

## AVAILABILITY

This function is available since SDL 3.2.0.
