Every month Haugen sends us a list of users whose course has expired and in order to ensure they no longer have access to the course, we delete their CourseMill Person External Account record.
The file provided by Haugen should include the Person ID and the Course, although strictly speaking only the Person ID is required, the course simply provides us a means to verify if the course is marked as expired on our end, but this is not necessarily required.
In order to complete the job you’ll do the following steps:
- Copy the person IDs from the provided Haugen file.
- Make sure to concatenate a comma after each Person ID as this will be the hardcoded list of person IDs to pass into the query.
- Paste the list of Person IDs into the marked section on the Haugen Expired Webusers.sql script
- Run the Haugen Expired Webusers.sql
- Copy the output column “OutputID”. This is the Person External Account Id plus a comma so you can use it in the Delete script to ensure only the appropriate records are deleted.
- Paste the OutputID list into the marked section in the Delete From Person External Accounts.sql script.
- Run Delete From Person External Accounts.sql
- If the number of affected rows is correct, run the commit statement, if not, run the rollback statement and review for problems.
- Respond to the Haugen email informing the team that the data has been removed from the AHIMA side.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article