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

# XblSocialManagerUser

> XblSocialManagerUser

# XblSocialManagerUser

XBOX Social User that contains profile, presence, preferred color, and title history data.

## Syntax

```cpp theme={null}
typedef struct XblSocialManagerUser {  
    uint64_t xboxUserId;  
    bool isFavorite;  
    bool isFriend;  
    bool isFollowingUser;  
    bool isFollowedByCaller;  
    char displayName[XBL_DISPLAY_NAME_CHAR_SIZE];  
    char realName[XBL_REAL_NAME_CHAR_SIZE];  
    char displayPicUrlRaw[XBL_DISPLAY_PIC_URL_RAW_CHAR_SIZE];  
    bool useAvatar;  
    char gamerscore[XBL_GAMERSCORE_CHAR_SIZE];  
    char gamertag[XBL_GAMERTAG_CHAR_SIZE];  
    char modernGamertag[XBL_MODERN_GAMERTAG_CHAR_SIZE];  
    char modernGamertagSuffix[XBL_MODERN_GAMERTAG_SUFFIX_CHAR_SIZE];  
    char uniqueModernGamertag[XBL_UNIQUE_MODERN_GAMERTAG_CHAR_SIZE];  
    XblSocialManagerPresenceRecord presenceRecord;  
    XblTitleHistory titleHistory;  
    XblPreferredColor preferredColor;  
} XblSocialManagerUser  
```

### Members

*xboxUserId*\
Type: uint64\_t

The xbox user id.

*isFavorite*\
Type: bool

Whether they are a favorite.

*isFriend*\
Type: bool

Indicates whether there exists a mutual follower/following relation between a user and another user

*isFollowingUser*\
Type: bool

No longer indicates whether a calling user is following a given user. Kept for backwards compatibility purposes. The value of this field is determined by the value of 'isFriend'

*isFollowedByCaller*\
Type: bool

No longer indicates whether a calling user is followed by given user. Kept for backwards compatibility purposes. The value of this field is determined by the value of 'isFriend'

*displayName*\
Type: char\[XBL\_DISPLAY\_NAME\_CHAR\_SIZE]

The UTF-8 encoded display name. Many batch operations performed by XblSocialManager will not return a displayName for players. Use gamerTag or modernGamerTag instead

*realName*\
Type: char\[XBL\_REAL\_NAME\_CHAR\_SIZE]

The UTF-8 encoded real name.

*displayPicUrlRaw*\
Type: char\[XBL\_DISPLAY\_PIC\_URL\_RAW\_CHAR\_SIZE]

The UTF-8 encoded display picture uri.

*useAvatar*\
Type: bool

Whether to use the players avatar.

*gamerscore*\
Type: char\[XBL\_GAMERSCORE\_CHAR\_SIZE]

UTF-8 encoded player's gamerscore.

*gamertag*\
Type: char\[XBL\_GAMERTAG\_CHAR\_SIZE]

UTF-8 encoded player's gamertag.

*modernGamertag*\
Type: char\[XBL\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Modern gamertag for the player. Not guaranteed to be unique.

*modernGamertagSuffix*\
Type: char\[XBL\_MODERN\_GAMERTAG\_SUFFIX\_CHAR\_SIZE]

Suffix appended to modern gamertag to ensure uniqueness. May be empty in some cases.

*uniqueModernGamertag*\
Type: char\[XBL\_UNIQUE\_MODERN\_GAMERTAG\_CHAR\_SIZE]

Combined modern gamertag and suffix. Format will be "MGT#suffix". Guaranteed to be no more than 16 rendered characters.

*presenceRecord*\
Type: [XblSocialManagerPresenceRecord](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord)

Users presence record.

*titleHistory*\
Type: [XblTitleHistory](/reference/live/xsapi-c/social_manager_c/structs/xbltitlehistory)

Title history for the user.

*preferredColor*\
Type: [XblPreferredColor](/reference/live/xsapi-c/social_manager_c/structs/xblpreferredcolor)

Preferred color for the user.

## Member of

[XblSocialManagerEvent](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent)

## Requirements

**Header:** social\_manager\_c.h

## See also

[social\_manager\_c](/reference/live/xsapi-c/social_manager_c/social_manager_c_members)


## Related topics

- [XblSocialManagerUserGroupGetUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [Social Manager overview](/services/xbox-services/community/social-manager/live-social-manager-overview.md)
- [XblSocialManagerPresenceRecord](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerpresencerecord.md)
- [XblSocialManagerEvent](/reference/live/xsapi-c/social_manager_c/structs/xblsocialmanagerevent.md)
- [XblPreferredColor](/reference/live/xsapi-c/social_manager_c/structs/xblpreferredcolor.md)
