Skip to content

Bulk delete sierra patrons#465

Open
agnesgaroux wants to merge 5 commits into
mainfrom
bulk-delete-sierra-patrons
Open

Bulk delete sierra patrons#465
agnesgaroux wants to merge 5 commits into
mainfrom
bulk-delete-sierra-patrons

Conversation

@agnesgaroux

Copy link
Copy Markdown
Contributor

What does this change?

wellcomecollection/platform#6400
About 18K patrons were recently deleted from Sierra and our usual set up (patron deletion tracker lambda) can not handle it

Manually created wellcomecollection-temp-auth0-user-deletions bucket in identity account
This PR

  • modifies the patron deletion tracker lambda to write the list of deleted Sierra patrons to the above bucket
  • give the lambda permission to write to the bucket
  • add a script that reads the deleted user list from S3 and slowly deletes them from auth0

How to test

Try it in stage first

How can we measure success?

All patrons deleted from Sierra are all gone from Auth0

Have we considered potential risks?

The code is very similar to what has been running in the patron deletion tracker lambda

@kenoir kenoir left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good plan.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants