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

# XUserIsStoreUser

> Reference for XUserIsStoreUser, a GDK XUser API function that checks whether the XUser MSA matches the account signed in to the Microsoft Store on PC.

# XUserIsStoreUser

Checks if the XUser MSA is the same as the MSA signed into the Microsoft Store.

## Syntax

```cpp theme={null}
bool XUserIsStoreUser(  
         XUserHandle user
)  
```

### Parameters

*user*   \_In\_opt\_\
Type: XUserHandle

User handle.

### Return value

Type: bool

Always returns true on console. On PC, it will return true only if the MSA of the XUser is same as the MSA signed into
the Microsoft Store. On PC, if nobody is signed into the Microsoft Store, or if the two different MSA are signed in as
the XUser and the Microsoft Store, it will return false.

## Remarks

For details on how to properly use this function, refer to
[Handling mismatched store account scenarios on PC](/publishing/xstore-commerce/xstore-pc).

## Requirements

**Header:** XUser.h

**Library:** xgameruntime.lib

**Supported platforms:** Windows, XBOX One family consoles and XBOX Series consoles

## Conceptual documentation

* [Handling mismatched store account scenarios on PC](/publishing/xstore-commerce/xstore-pc)

## See also

[XUser](/reference/system/xuser/xuser_members)

[Handling mismatched store account scenarios on PC](/publishing/xstore-commerce/xstore-pc)
