Skip to main content

XblSocialManagerCreateSocialUserGroupFromFilters

Constructs a XblSocialManagerUserGroup, which is a collection of users with social information.

Syntax

Parameters

user   _In_
Type: XblUserHandle
XBOX Live User the group is associated with. presenceFilter   _In_
Type: XblPresenceFilter
The restriction of users based on their presence and title activity. relationshipFilter   _In_
Type: XblRelationshipFilter
The restriction of users based on their relationship to the calling user. group   _Outptr_result_maybenull_
Type: XblSocialManagerUserGroupHandle*
Passes back a handle to the created group. This group can be later be cleaned up with XblSocialManagerDestroySocialUserGroup. The group will also be cleaned up (invalidating the returned handle) if the associated user is removed from Social Manager.

Return value

Type: HRESULT HRESULT return code for this API operation.

Remarks

The result of a user group being loaded will be triggered through the XblSocialManagerEventType::SocialUserGroupLoaded event in XblSocialManagerDoWork.

Requirements

Header: social_manager_c.h Library: Microsoft.Xbox.Services.14x.GDK.C.lib

See also

social_manager_c
Last modified on August 20, 2026