> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 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](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md). To remove local users from being tracked, call [XblSocialManagerRemoveLocalUser](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerremovelocaluser.md). This function must be called before calling [XblSocialManagerGetLocalUsers](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md).

## Requirements

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

**Library:** Microsoft.Xbox.Services.142.C.lib or Microsoft.Xbox.Services.143.C.lib

## See also

[social\_manager\_c](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)


## Related topics

- [XblSocialManagerGetLocalUsers](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagergetlocalusers.md)
- [social_manager_c (contents)](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/social_manager_c_members.md)
- [XblSocialManagerUserGroupGetLocalUser](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetlocaluser.md)
- [XblSocialManagerUserGroupGetUsers](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanagerusergroupgetusers.md)
- [XblSocialManagerAddLocalUser](https://docs.xbox.com/reference/live/xsapi-c/social_manager_c/functions/xblsocialmanageraddlocaluser.md)
