This topic shows how to enumerate all users, which includes users that are authenticated, guest users, and those that are connected remotely.
Use User.Users to retrieve a list of all users on the console.
C++
// Declare a users object that will contain all User instances.
auto users = Windows::Xbox::System::User::Users;
Then iterate for all users.
The type of each user (unknown, sponsored guest, or signed in Xbox Live user) can be determined using the User.IsSignedIn and User.IsGuest properties. See Users for the combination of values for each account type.
Note The maximum number of active users (signed-in and guest users) at one time is 16. The Kinect skeleton tracking system can track up to six active players.
C++
for ( UINT i = 0; i < users->Size; ++i )
{
auto pUser = users->GetAt( i );
// Do something with user object
}