Query scim helper