Trinity Students/Faculty update purge dates

Creates a set of non-expired patron accounts for Trinity University faculty and students in the Shared Collections Facility (SCF) IZ and updates their purge date to a date 18 months in the future.

At a glance

Why this exists

Libraries often need user accounts to remain available for active patrons, while ensuring inactive/expired accounts are queued for cleanup according to policy. This workflow automates a repeatable “maintenance” step: it identifies current Trinity faculty/students (based on user group and expiry date) and sets a future purge date, reducing manual intervention and helping keep user data lifecycle rules consistent.

What it does

Where it runs

How it works

Logic overview

Execution order (nodes):

  1. Schedule Trigger

    • Role: Starts the workflow on a timed schedule.

    • Key behavior: “Runs at 5:30am on day 1 every 4 months.”

  2. Today’s Date (Date & Time → formatDate)

    • Role: Produces today’s date formatted as yyyy-MM-dd.

    • Output used in the set name and set query.

  3. Create Logical Set (Alma API → POST /almaws/v1/conf/sets)

    • Role: Creates a logical set of current Trinity faculty/students.

    • Key configuration:

      • Set name pattern: Current Trinity Faculty and Students <today>

      • Type: LOGICAL

      • Content: USER

      • Query: Trinity faculty/student user groups with expiry date after today

    • Credential label referenced: SCF Production - Alma APIs - Read & Write

  4. Date in 18 Months (Date & Time → addToDate)

    • Role: Computes a date 18 months after today.

  5. Unix Ms Date (Date & Time → formatDate)

    • Role: Converts the 18-month future date into a Unix millisecond timestamp (x).

    • Output feeds the purge date value used by the Alma job.

  6. Run Job (Alma API → POST /almaws/v1/conf/jobs/{job_id} with op=run, job_id=M148)

    • Role: Runs an Alma job against the logical set, updating user fields.

    • Key configuration that affects behavior:

      • Targets set_id from “Create Logical Set”

      • Purge Date update is enabled (UPDATE_User_Information_Purge_Date_Active = true)

      • Purge date value is the Unix ms timestamp for “today + 18 months”

      • Most other update options are explicitly disabled (e.g., status/user group/roles/notifications are not activated)

If results exist
If no results

Artifacts produced


Revision #1
Created 18 February 2026 17:42:56 by Jackie Saavedra
Updated 18 February 2026 17:45:34 by Jackie Saavedra