def test_normal_user_cannot_view_other_users_if_not_superuser(
    normal_user_client: R2RClient, ):
    """A normal user tries to list all users, should fail."""
    with pytest.raises(R2RException) as exc_info:
        normal_user_client.users.list()
    assert exc_info.value.status_code == 403, (
        "Non-superuser should not list all users.")
A normal user tries to list all users, should fail.
py/tests/integration/test_collections_users_interaction.py