Browse SDKs · Flutter
SDKsFlutter

Retrieve the group owner and administrators

Retrieve a group’s owner and administrators with the OpenIM Flutter SDK.

Copy

getGroupOwnerAndAdmin() retrieves the target group's owner and administrators directly, without paging through all members.

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

A successful Future returns List<GroupMembersInfo>. The result is a management-role snapshot at call time and does not trigger member events. Merge role changes by groupID:userID; see Group member queries overview.