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

# XTF_USER_DATA

> XTF_USER_DATA

# XTF\_USER\_DATA

Describes a simulated user.

<a id="syntaxSection" />

## Syntax

```cpp theme={null}
typedef struct XTF_USER_DATA {
    UINT32 userId;
    WCHAR szEmailAddress[256];
    WCHAR szGamertag[32];
    BOOL bSignedIn;
    XTF_USER_XUID xuid;
    BOOL bAutoSignIn;
} XTF_USER_DATA, *PXTF_USER_DATA;  
```

<a id="ID4EG" />

<a id="membersSection" />

### Members

**userId**\
Type: UINT32

A unique identifier for the user

**szEmailAddress**\
Type: WCHAR

The email address used to sign in the user.

**szGamertag**\
Type: WCHAR

The gamertag of the user.

**bSignedIn**\
Type: BOOL

If true, the user is signed in.

**xuid**\
Type: XTF\_USER\_XUID

The XBOX user ID of the user.

**bAutoSignIn**\
Type: BOOL

If true, the user is set to automatically sign in.

<a id="remarksSection" />

## Remarks

This structure is used in the [IXtfUserClient::ListUsers](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/listusers-ixtfuserclient-xtfuser-xbox-windows-m) method.

The members of this structure provide values that you can use when calling other [IXtfUserClient](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t) methods.

To create an object that implements the `IXtfUserClient` interface, call [XtfCreateUserClient](/reference/tools/xtf/xtfuser/methods/xtfcreateuserclient-xtfuser-xbox-windows-m).

<a id="requirements" />

<a id="requirementsSection" />

## Requirements

**Header:** xtfuser.h

**Library:** xtfuser.lib

**Supported platforms:** Windows (for XBOX console tools)

<a id="seealsoSection" />

## See also

[XtfUser](/reference/tools/xtf/xtfuser/xtfuser-xbox-windows-n)


## Related topics

- [XTF_USER_DATA_V2](/reference/tools/xtf/xtfuser/structures/xtf_user_data_v2.md)
- [IXtfUserClient::ListUsers](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/listusers-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::SignoutUser](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signoutuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::PairControllerWithUser Method](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/paircontrollerwithuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::PairControllerWithUserId Method](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/paircontrollerwithuserid-ixtfuserclient-xtfuser-xbox-windows-m.md)
