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

# XblSocialManagerGetLocalUserCount

> XblSocialManagerGetLocalUserCount

# XblSocialManagerGetLocalUserCount

Get the number of local users currently tracked by SocialManager.

## Syntax

```cpp theme={null}
size_t XblSocialManagerGetLocalUserCount(  
)  
```

### Parameters

### Return value

Type: size\_t

The number of local users currently tracked by SocialManager.

## Remarks

To add local users to be tracked, call [XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser). To remove local users from being tracked, call [XblSocialManagerRemoveLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser). This function must be called before calling [XblSocialManagerGetLocalUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers).

## Requirements

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

**Library:** Microsoft.Xbox.Services.14x.GDK.C.lib

## See also

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


## Related topics

- [XblSocialManagerGetLocalUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [XblSocialManagerUserGroupGetLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetlocaluser.md)
- [XblSocialManagerUserGroupGetUsers](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [XblSocialManagerAddLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
- [XblSocialManagerRemoveLocalUser](/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser.md)
