Skip to content

addGroupMembersAsync

@JvmOverloads

suspend fun addGroupMembersAsync(groupId: String, membersToAdd: Array<String>, adminsToSet: Array<String> = emptyArray(), privateKeys: PreGeneratedKeys? = null)

Add members to a group. Can only be done by a group administrator. Can also specify which of these newly added group members should also be admins.

Parameters

groupIdThe group in which to add members.
membersToAddThe Seald IDs of the members to add to the group.
adminsToSetThe Seald IDs of the newly added members to also set as group admins.
privateKeysOptional. Pre-generated private keys, returned by a call to generatePrivateKeys or generatePrivateKeysAsync.

Throws

SealdException