IOnlineGroups::TransferGroup

Promote an existing Admin to be the new Owner and simultaneously demotes the context user to Admin.

Windows
MacOS
Linux

References

Module

OnlineSubsystem

Header

/Engine/Plugins/Online/OnlineSubsystem/Source/Public/Interfaces/OnlineGroupsInterface.h

Include

#include "Interfaces/OnlineGroupsInterface.h"

Syntax

void TransferGroup
(
    const FUniqueNetId & ContextUserId,
    const FUniqueNetId & GroupId,
    const FUniqueNetId & NewOwnerId,
    const FOnGroupsRequestCompleted & OnCompleted
)

Remarks

Promote an existing Admin to be the new Owner and simultaneously demotes the context user to Admin. Fails if the new owner is not currently an Admin of the group. Also fails if the new owner cannot own the group (due to owning too many other groups, as determined by the namespace config, perhaps).

Parameters

Parameter

Description

ContextUserId

The ID of the user whose credentials are being used to make this call

GroupId

The group's globally unique ID

UserId

The user who should become the new group owner. This user must already be an Admin or the call fails.

OnCompleted

This callback is invoked after contacting the server. It is guaranteed to occur (regardless of success/fail) and will not be called before this function returns.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss