Skip to content

Create class to retrieve all users from the libraryapistore endpoint #56

@mzelesky

Description

@mzelesky

See https://github.com/pulibrary/lib_jobs/tree/main/app/models/alma_people

The purpose of this class is slightly different from lib_jobs. In https://github.com/pulibrary/lib_jobs/blob/main/app/models/alma_people/oit_person_feed.rb, you are required to supply a begin date and end date. In our case, we want to retrieve ALL eligible users and ALL ineligible users.

However, we need the exact same functionality as https://github.com/pulibrary/lib_jobs/blob/main/app/models/alma_people/alma_xml_person.rb, since the end goal is to compare users in Alma to all users in PeopleSoft.

Acceptance criteria

  • A class is made that is modeled on https://github.com/pulibrary/lib_jobs/blob/main/app/models/alma_people/alma_xml_person.rb to be able to return all eligible users and all ineligible users from the OIT person feed
    • A Ruby hash is returned with the data instead of XML to reduce data footprint
    • Parameter to specify whether to return all eligible or all ineligible users is supplied
    • Exclude addresses and email addresses to limit the amount of information being passed around for audit purposes

Sub-issues

Metadata

Metadata

Assignees

Labels

EpicauditRelated to the audit

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions