Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Alma

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Alma
    3. Community Knowledge
    4. How to Load Patrons from Alma Sandbox to Alma Production in the Event of a Data Loss

    How to Load Patrons from Alma Sandbox to Alma Production in the Event of a Data Loss

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    No headers
    Created By: Lisa Hamlett
    Created on: 4/13/2021



    In April of 2021, I accidentally purged a bunch of users from Alma Production who needed to be reimported.  These are the steps my colleague, Alex Cooper, used to replace them from the Alma Sandbox.

     

    1. Create file of user IDs from the Alma Sandbox or Alma Analytics:

      user_test.txt

    2. Put the user IDs into the API call to create an XML file of user records from the Alma Sandbox:

      cat user_test.txt | while read line; do curl -X GET "https://api-na.hosted.exlibrisgroup.com/almaws/v1/users/${line}?user_id_type=all_unique&view=full&expand=none&apikey=[API KEY]" -H "accept: application/xml"; done >> user_test.xml 2> /tmp/user_test.log

    3. Clean the XML file in VI:

       :%s/<?xml version="1.0" encoding="UTF-8" standalone="yes"?>//gc 

    4. Prepare the XML file:

      add <?xml version="1.0" encoding="UTF-8" standalone="yes"?><users> to the beginning of the string and </users> to the end

    5. Zip the file:

      user_test.zip

    6. Copy the file to the directory you have defined for the user loader in Alma.
    7. Run the user synchronization job.



    Report
    View article in the Exlibris Knowledge Center
    1. Back to top
      • How to find records with both physical and electronic inventory
      • How to Modify the MailReason.xsl to Display Different Greetings for Different User Groups
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Community Content Type
      How To
      Content Type
      Documentation
      Product
      Alma
    2. Tags
      This page has no tags.
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved