I need to list all MFA’s previously registered and i need to be able to delete them.
So, what is the best way to do it?
I’m trying to use GET /mfa/authenticators, but when I tried to get the list i couldn’t and received following error:
“Could not retrieve an access token with scopes “read:authenticators”. The user will need to sign in again”.
I’m already using scopes on login (as an image bellow)
Hi @pedrolucasfsouza,
Thanks for posting your question and sorry for the late reply.
In order to request a list of all authenticators using the Management API, the Access Token must contain the read:authentication_methods scope, as mentioned in our Knowledge Article about retrieving all authenticators for a certain user. This endpoint can be used: GET /api/v2/users/{id}/authentication-methods, detailed here.
Leaving this here since it might help others as well.
Thanks,
Remus