SDKsAndroid
Check users in a group
Use getUsersInGroup to select the users who are currently members of a group.
getUsersInGroup() returns the IDs among the supplied candidates that currently belong to the specified group. It does not return member profiles.
OpenIMClient.getInstance().groupManager.getUsersInGroup(new OnBase<List<String>>() {
@Override public void onSuccess(List<String> joinedUserIDs) { /* joinedUserIDs contains group member IDs. */ }
@Override public void onError(int code, String error) { /* code and error describe the failure. */ }
}, groupID, candidateUserIDs);To retrieve nicknames, roles, or mute state, call Get group member profiles afterward.
Was this page helpful?