def group_name_to_team_name(group_name):
    """Return the team name corresponding to Keycloak's `group_name`."""
    if group_name.startswith("TEAM-"):
        return group_name[len("TEAM-") :]

    return group_name