def METHOD_NAME(self):
    project = self.create_project()
    event = self.store_event(
        data={
            "message": "message 1",
            "platform": "python",
            "user": {
                "id": 1,
                "email": "foo@example.com",
                "username": "foo",
                "ip_address": "127.0.0.1",
            },
            "timestamp": iso_format(before_now(seconds=1)),
        },
        project_id=project.id,
    )
    self.store_event(
        data={
            "message": "message 1",
            "platform": "python",
            "user": {
                "id": 1,
                "email": "foo@example.com",
                "username": "foo",
                "ip_address": "127.0.0.1",
            },
            "timestamp": iso_format(before_now(seconds=1)),
        },
        project_id=project.id,
    )
    self.store_event(
        data={
            "message": "message 1",
            "platform": "python",
            "user": {
                "id": 2,
                "email": "bar@example.com",
                "username": "bar",
                "ip_address": "127.0.0.1",
            },
            "timestamp": iso_format(before_now(seconds=1)),
        },
        project_id=project.id,
    )
    group = event.group
    self.login_as(user=self.user)
    url = f"/api/0/issues/{group.id}/tags/user/values/?sort=count"
    response = self.client.get(url)
    assert response.status_code == 200
    assert len(response.data) == 2
    assert response.data[0]["email"] == "foo@example.com"
    assert response.data[0]["value"] == "id:1"
    assert response.data[1]["email"] == "bar@example.com"
    assert response.data[1]["value"] == "id:2"