Browse SDKs · iOS
SDKsiOS

Retrieve the group owner and administrators

Retrieve the owner and administrators of an iOS group.

Copy

Pass the target groupID to the selector. The success callback returns the owner and administrators as OIMGroupMemberInfo objects without requiring the complete member list.

[[OIMManager manager] getGroupMemberOwnerAndAdmin:groupID
  onSuccess:^(NSArray<OIMGroupMemberInfo *> *members) {
    [self replaceOwnerAndAdmins:members];
  }
  onFailure:^(NSInteger code, NSString *message) {
    [self showErrorCode:code message:message];
  }];

Merge role changes from onGroupMemberInfoChanged: by groupID:userID.