Skip to main content

XblSocialManagerAddLocalUser

Create a social graph for the specified local user.

Syntax

Parameters

user   _In_
Type: XblUserHandle
XBOX Live User to create a graph for. extraLevelDetail   _In_
Type: XblSocialManagerExtraDetailLevel
The level of verbosity that should be in the service calls for this user. queue   _In_opt_
Type: XTaskQueueHandle
Queue to be used for background operation for this user (Optional). Note: Using XTaskQueueDispatchMode::Immediate for this queue may cause poor performance.

Return value

Type: HRESULT HRESULT return code for this API operation.

Remarks

The result of a local user being added will be triggered through the XblSocialManagerEventType::LocalUserAdded event in XblSocialManagerDoWork. To remove the social graph for the specified local user, call XblSocialManagerRemoveLocalUser.

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