/
Get user 2FA List

ЕСОЗ - публічна документація

Get user 2FA List

Specification

Apiary
GET mithril/api/users/{user_id}/authentication_factors/{?type}
Scopeauthentication_factor:read

Purpose

Get 2FA items list for user (via Admin-console).

Request parameters

  • user_id
  • type

Logic WS

  • Validate token & scope
  • Validate user id & user status
  • Get data by filters 

    SELECT *
    FROM authentication_factors AS 2FA
    WHERE
    	2FA.user_id = $.user_id
    		AND (2FA.type = $.type OR $.type IS NULL)
  • Return 200

Response

  • 200 if get list successful  + 2FA_list_view
  • Partial masked attribute `factor` in response
  • 4xx in other case


Related content

Get user 2FA by ID
Get user 2FA by ID
More like this
Create User 2FA
Create User 2FA
More like this
Enable User 2FA
Enable User 2FA
More like this
Disable User 2FA
Disable User 2FA
More like this
Reset User 2FA
Reset User 2FA
More like this
Approve User Factor
Approve User Factor
More like this

ЕСОЗ - публічна документація