Skip to main content

XUserIsStoreUser

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

Syntax

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.

Requirements

Header: XUser.h Library: xgameruntime.lib Supported platforms: Windows, XBOX One family consoles and XBOX Series consoles

Conceptual documentation

See also

XUser Handling mismatched store account scenarios on PC
Last modified on August 31, 2026