> ## Documentation Index
> Fetch the complete documentation index at: https://docs.lerian.studio/llms.txt
> Use this file to discover all available pages before exploring further.

# Admin Enable MFA

> Enables an email MFA channel on behalf of another user and returns the recovery codes minted for the member. Requires the "mfa-admin" resource. TOTP ("app") cannot be enrolled by an administrator and is rejected with IDE-0055. The codes are returned only in this response and cannot be read again — deliver them to the member out of band.



## OpenAPI

````yaml /pt/openapi/v3-current/AM-identity.yaml post /v1/users/{id}/mfa/admin/enable
openapi: 3.0.1
info:
  contact: {}
  description: This is a swagger documentation for the Identity API
  termsOfService: http://swagger.io/terms/
  title: Identity API
  version: 1.0.0
servers:
  - url: //localhost:4001/
security: []
paths:
  /v1/users/{id}/mfa/admin/enable:
    post:
      tags:
        - MFA
      summary: Admin Enable MFA
      description: >-
        Enables an email MFA channel on behalf of another user and returns the
        recovery codes minted for the member. Requires the "mfa-admin" resource.
        TOTP ("app") cannot be enrolled by an administrator and is rejected with
        IDE-0055. The codes are returned only in this response and cannot be
        read again — deliver them to the member out of band.
      parameters:
        - description: Target User ID
          in: path
          name: id
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/MFAAdminEnableInput'
        description: MFA Admin Enable Input
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/github_com_LerianStudio_plugin-access-manager_v3_components_identity_pkg_model.MFARecoveryCodesResponse
          description: OK
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Bad Request
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Unauthorized
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Forbidden
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Not Found
        '409':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Conflict
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/pkg.HTTPError'
          description: Internal Server Error
      security:
        - BearerAuth: []
components:
  schemas:
    MFAAdminEnableInput:
      description: MFAAdminEnableInput payload
      example:
        mfaType: email
      properties:
        mfaType:
          enum:
            - app
            - email
          example: email
          type: string
      required:
        - mfaType
      type: object
    github_com_LerianStudio_plugin-access-manager_v3_components_identity_pkg_model.MFARecoveryCodesResponse:
      example:
        recoveryCodes:
          - recoveryCodes
          - recoveryCodes
      properties:
        recoveryCodes:
          description: Newly issued recovery codes. Any code issued earlier is now invalid.
          items:
            type: string
          type: array
      type: object
    pkg.HTTPError:
      properties:
        code:
          type: string
        entityType:
          type: string
        err:
          type: object
        message:
          type: string
        title:
          type: string
      type: object
  securitySchemes:
    BearerAuth:
      description: 'Bearer authentication. Send Authorization: Bearer <token>.'
      in: header
      name: Authorization
      type: apiKey

````