Problem Statement
I want to get all the enrollments and delete the duplicated or unconfirmed ones because some users can’t do more enrollment after several failed attempts.
Cause
- if the user only triggers an enrollment request but does not confirm it, there will be a record in the authenticator list with active: false.
- Once the total number of authenticators reaches 51, the user cannot do any MFA enrollments.
- All the enrollment requests are accumulated with their own ID, every time a user clicks to enroll.
Solution
With Management API:
- Get enrollments with one of these options:
- Filter the “active: false” ones in case you have more than one option.
- Select the enrollment IDs to erase
- DELETE /api/v2/guardian/enrollments/:id