def METHOD_NAME(integration: Integration, user_id: str) -> str:
    """
    Get the user_conversation_id even if `integration.metadata.tenant_id` is not set.
    """
    client = MsTeamsClient(integration)
    tenant_id = integration.metadata.get("tenant_id")
    if not tenant_id:
        # This is definitely an integration of `integration.metadata.installation_type` == `team`,
        # so use the `integration.external_id` (team_id) to get the tenant_id.
        members = client.get_member_list(integration.external_id).get("members")
        tenant_id = members[0].get("tenantId")
    conversation_id = client.METHOD_NAME(user_id, tenant_id)
    return conversation_id