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

# IXtfUserClient::AddUser Method

> IXtfUserClient::AddUser Method

# IXtfUserClient::AddUser Method

Adds a user without signing them in.

## Syntax

```cpp theme={null}
public:
HRESULT AddUser(
         LPCWSTR emailAddress,
         UINT32 *pUserId
)  
```

### Parameters

*emailAddress*\
Type: LPCWSTR

The email address of the user to add.

*pUserId*\
Type: UINT32 \*

On successful completion, points to the User ID of the user.

### Return value

Type: HRESULT

HRESULT success or error code.

## Remarks

In this release, password text is not encrypted when sent to the console over the network. If this is a concern in your network environment, then use the **AddUser** method to add the user to the console, then use the Sign-In app on the console to sign in the user and store the password. (The Sign-In app sends the encrypted password over the network.) After this, you can use [SigninUser](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signinuser-ixtfuserclient-xtfuser-xbox-windows-m) or [SigninUserId](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signinuserid-ixtfuserclient-xtfuser-xbox-windows-m) to sign in without sending a password.

## Requirements

**Header:** xtfuser.h

**Library:** xtfuser.lib

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

## See also

[IXtfUserClient Interface](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/ixtfuserclient-xtfuser-xbox-windows-t)


## Related topics

- [IXtfUserClient::SigninUser](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signinuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::AddSponsoredUser](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/addsponsoreduser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::DeleteUser](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/deleteuser-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::SigninUserId](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/signinuserid-ixtfuserclient-xtfuser-xbox-windows-m.md)
- [IXtfUserClient::DeleteAllUsers](/reference/tools/xtf/xtfuser/classes/IXtfUserClient/methods/deleteallusers-ixtfuserclient-xtfuser-xbox-windows-m.md)
