onTeamMemberJoined
Triggered when a new user joins a team where the App is registered.
This is a team-level event, it is not tied to a specific conversation. Use onUserJoinedConversation when you need to react to members being added to a conversation.
Received properties
userId— Qualified identifier of the user who joined the team.teamId— Identifier of the team the user joined, provided as aTeamId.
Sample usage
Track new team members
- Kotlin
- Java
override suspend fun onTeamMemberJoined(
userId: QualifiedId,
teamId: TeamId
) {
println("Team member joined: $userId in team $teamId")
}
@Override
public void onTeamMemberJoined(
@NotNull QualifiedId userId,
@NotNull TeamId teamId
) {
System.out.println("Team member joined: " + userId + " in team " + teamId);
}