def ids(type, *names)
    name_attr = type_info(type, :name_attr)
    origin_attr = type_info(type, :origin_attr)

    filter = names.map do |n|
      "#{name_attr} eq \"#{n}\""
    end

    attributes = ['id', name_attr, origin_attr]

    all_pages(type, attributes: attributes.join(','), filter: filter.join(' or '))
  end
def ids(type, *names)
    name_attr = type_info(type, :name_attr)
    origin_attr = type_info(type, :origin_attr)

    filter = names.map do |n|
      "#{name_attr} eq \"#{n}\""
    end

    attributes = ['id', name_attr, origin_attr]

    all_pages(type, attributes: attributes.join(','), filter: filter.join(' or '))
  end
Gets id/name pairs for given names. For naming attribute of each object type see {Scim}
 @param type (see #add)
 @return [Array] array of name/id hashes for each object found