Browse SDKs · Flutter
Platform
SDKsFlutter

Get group owner and admin

Retrieve the group owner and administrators directly without full pagination using the OpenIM Flutter SDK.

Copy

Retrieve the group owner and all administrators directly, without paginating through the entire group membership:

Parameters

ParameterTypeRequiredDescription
groupIDStringYesTarget group ID.

Code example

final ownerAndAdmins =
    await OpenIM.iMManager.groupManager.getGroupOwnerAndAdmin(
  groupID: groupID,
);

Return value

A successful Future returns a list of group member records containing the owner and administrators (List<GroupMembersInfo>).

This query returns an immediate data snapshot and does not emit event notifications. When ownership transfers or administrator promotions occur, merge records idempotently using groupID:userID. See Retrieving group members overview.