Medplum MFA: when a password alone is not enough for your users
If your team runs self-hosted Medplum and users sign in with a password, you need to add a second factor to those sign-ins, and multi-factor authentication in Medplum applies only to password logins. Users who sign in through an external identity provider get their second factor from that provider instead. Your real decision is which second factor to offer: a time-based one-time password (TOTP) from an authenticator app, or a one-time code sent by email. Each has different enrollment, recovery and phishing exposure, and the choice affects how your help desk handles lost devices.
The people who need this first are clinical staff who chart, prescribe or view patient records, administrators who manage projects and users, and any account with broad project access, such as a super admin or a Bot deployer. A compromised password on one of these accounts exposes far more data than a standard user account. Before rollout, list which roles fall into this group and decide whether the factor should be required for all of them or only for administrators. Confirm in the Medplum authentication docs how the current release names these settings and where email MFA is enabled per project, since the exact steps can change between releases.
This page walks through the TOTP and email options, enabling email MFA for a project, enrollment, and account reset, and how SSO users inherit their provider's controls. It does not assume a specific Medplum release, so confirm the settings in your own version and in a test project before you change production. Ask your team to verify three things: which accounts are password-based, how a locked-out user regains access without a super admin bypassing the factor, and whether your identity provider already enforces MFA for the users you plan to move.
Medplum MFA options: TOTP versus email codes compared
This table compares authenticator app (TOTP) and email code MFA on setup effort, device and mailbox dependence, recovery, and fit for different users. Read the last row as a checklist of what to confirm in the Medplum docs before you choose a method for each project.
| Criterion | Authenticator app (TOTP) | Email code |
|---|---|---|
| Setup effort for admins | Users install or already have an app and scan or enter a secret during enrollment | Little per-user setup, but admins must confirm email delivery works for every user before rollout |
| Dependence on the user's device | Tied to the enrolled phone or app; a lost or replaced device blocks sign-in until reset | Not tied to a device, but tied to the phone or laptop that can open the mailbox |
| Dependence on the mailbox | None at sign-in time, so a mail outage does not block users | Sign-in fails if mail is delayed, filtered or the mailbox is unavailable |
| Recovery path | Admin reset or re-enrollment is needed when the authenticator is lost; confirm who can perform it | Recovery depends on the mail account; account recovery of the mailbox becomes part of the sign-in process |
| Fit for shared or clinical workstations | Weaker fit where users share a device, since the code generator sits on a personal phone | Often easier for occasional users, but codes arriving on shared mail accounts weaken the factor |
| Fit for patients and occasional users | Harder for users who will not install an app | Simpler for users who already have a verified email address |
| What to confirm in Medplum docs | Enrollment flow, supported authenticator apps, and whether TOTP is enabled per project | Whether email MFA is enabled per project, code lifetime, and how resend and reset work |
Which Medplum login paths MFA covers
When a user signs in with an email and password that Medplum stores, Medplum Auth runs the sign-in step itself. Medplum's own MFA settings decide whether a second factor is required, so this is the only path where the authenticator app and email code options described on this page apply.
- Medplum enforces the second factor: Medplum checks the second factor after the password is accepted, so the project setting controls this path.
- Email codes: confirm that email MFA is enabled for the project and that your staff can receive the code at the address on their account.
- Authenticator apps: each user enrolls their own app, so confirm your users know how to complete enrollment and how to reset it.
- Existing accounts: list the users who have not enrolled yet and decide how you will handle them before you require MFA for everyone.
Check that the project setting is on, then sign in with a test account to confirm the second prompt appears before you rely on it.
When a user signs in through Google, Auth0 or AWS Cognito, the provider handles the password and any second factor. Medplum does not add its own MFA prompt for these users, so the provider's policy is the control that matters. Medplum's authentication docs describe the external provider model.
- The provider enforces MFA: turn on MFA in Google, Auth0 or Cognito for the users who sign in through that connection.
- Medplum's setting does not reach these users: the Medplum MFA prompt is skipped for federated sign-in, so do not assume it protects them.
- Connection scope: confirm which users can reach Medplum through each external connection and who manages the provider tenant.
- Test the sign-in: sign in with a test user through each connection and confirm the provider asks for a second factor.
Ask the provider administrator for the written MFA policy that applies to each connection and record it in your access review.
A domain-level corporate identity provider, such as Okta or Microsoft Entra ID, can route everyone on your email domain to the corporate sign-in. In this model the corporate identity team owns the second factor and any conditional access rules, and Medplum relies on the result of that sign-in.
- The corporate provider owns the second factor: MFA and conditional access rules live in the corporate identity provider, not in Medplum project settings.
- Domain routing: confirm that every staff email domain routes to the provider so that no staff member can sign in with a Medplum password.
- Fallback accounts: identify any super admin or break-glass account that can still sign in with a Medplum password, because those accounts follow the Medplum MFA path.
- Policy coverage: ask the identity team to confirm that MFA applies to all groups, including contractors, temporary staff and administrators.
Compare the list of users who can still sign in with passwords against the domain routing list to find any gaps before you close the review.
Client credentials and other machine access are server-to-server calls with no person at the sign-in step. MFA is a user sign-in control, so it does not apply here. Protection for these clients comes from how the client proves its identity, the access policy attached to it and how its secrets are managed.
- No interactive prompt: a system integration authenticating with client credentials cannot answer an MFA challenge, so MFA is not the control for this path.
- Secret handling: store client secrets in a secrets manager and limit who can read or change them.
- Stronger client authentication: check whether signed JWT client assertion or mutual TLS fits the integration, as covered in the related topics on this page's content group.
- Scope and rotation: confirm each ClientApplication has an access policy limited to what it needs and a documented rotation schedule.
Confirm that no human user account is used for machine access, because a person's password login would bring the MFA path back into an integration that was meant to run without one.
How a password sign-in reaches the MFA challenge
The diagram starts in the user's browser, where sign-in begins. A password sign-in moves to Medplum Auth, which checks the password and then reads the project setting to see whether MFA is required. If it is, Medplum Auth shows an MFA challenge, and the user enters an authenticator app code or an email code. Medplum Auth issues the token only after that check passes. The SSO branch leaves Medplum for the external identity provider, which runs its own MFA and returns the sign-in result, so no Medplum MFA step appears on that path. Confirm which path each group of users takes before you rely on Medplum MFA.
Password sign-ins hit an MFA check in Medplum Auth, while SSO sign-ins leave for the provider.
Enabling email MFA for a Medplum project
This sequence turns on email one-time codes for a Medplum project, confirms that the codes actually reach users, and proves a password sign-in is challenged while SSO sign-ins are left to the identity provider. Each step ends with a check you can record before you widen the rollout.
Confirm project and admin access
The project administrator confirms they can sign in to the Medplum app with an account that holds project admin rights, and that the project is the one the MFA change should apply to. Check that you know which projects exist on the server and which ones serve production users. Record the project ID so the change is traceable. The step is complete when the administrator can open the project's admin settings and see the sign-in and MFA options.
Verify email delivery on the server
The server operator confirms that the self-hosted Medplum server can send email, using the mail settings in the server configuration. Email MFA is only as reliable as this delivery path, so review the sender address, the SMTP or mail service details, and any allow lists your mail provider requires. Confirm the exact configuration keys in the current Medplum authentication and self-hosting docs, since names can change between versions. The check is a test message that arrives in a mailbox you control, with the code or message content intact.
Enable email MFA in project settings
The project administrator turns on email-based multi-factor authentication for the project in the admin settings. Confirm the exact menu path in the current Medplum authentication docs, because the location of this option may differ by version. Before saving, decide whether the change should apply to all password-based users in the project and communicate the date to support staff. The step is complete when the setting shows as enabled and the administrator has saved a record of the change.
Enroll a dedicated test account
Create or select a test user with a password login in the same project, using a mailbox that only the tester can read. Sign in with the password and follow the enrollment prompt to set up email verification. Confirm that the account has no shared credentials with production staff. The check is that the test user reaches the MFA challenge after entering the password and cannot finish sign-in without the emailed code.
Verify sign-in with the emailed code
Sign in as the test user from a clean browser session, enter the password, and wait for the code email. Enter the code and confirm the session opens. Then test the failure paths: an incorrect code, an expired or reused code if your version supports those checks, and a second sign-in attempt. Note the time between sending and receiving the code, because slow mail delivery is the most common support complaint during rollout. The step is complete when the valid code signs the tester in and invalid attempts are refused.
Confirm SSO users are not challenged by Medplum
Sign in with a test account that uses an external identity provider, such as a corporate provider configured for the project. Confirm that Medplum does not show its own email code prompt, because MFA applies to password logins on Medplum. Check that the identity provider enforces its own second factor where your policy requires it. The step is complete when the SSO sign-in follows the provider's flow only, and you have documented which factor the provider enforces for those users.
Document the reset and support path
Write down how an administrator resets a user's MFA enrollment, how a user who loses access to their mailbox recovers, and who approves the reset. Test one reset on the test account so the steps are confirmed in your environment, not assumed from the docs. The step is complete when support staff have a written procedure and the test reset has been performed and recorded.
Enrollment and reset risks that lock users out
Most MFA lockouts happen during enrollment and recovery, not at sign-in. The four risks below share one root cause: a factor is bound to a person or mailbox, and that binding drifts over time. Each card names the operational control that keeps a user from being stranded or an administrator from resetting the wrong account.
Lost authenticator device
A user who loses the phone holding their TOTP authenticator app can no longer produce valid codes, and sign-in stops at the second factor. Before go-live, decide who performs the reset, how the user proves identity to that person, and whether a second enrolled factor is required so one lost device does not end access. Document the reset steps in your runbook and test them with a pilot user. Confirm with Medplum how factor removal appears in the admin interface on your version.
Medplum auth docsEmail codes sent to an unreachable mailbox
Email codes depend on a mailbox the user can read at sign-in. Departed staff, shared inboxes, aliases that do not deliver, or mail filters that quarantine the sender all leave a user unable to finish login. Verify that each account's email address is current and deliverable before enabling email MFA for a project, and confirm that your mail relay can send from the Medplum sender address. Include a mailbox check in onboarding and offboarding tickets.
Resetting factors on the wrong account
Administrators often search by name, and two clinicians with similar names or a copied email address can lead to a reset applied to the wrong user. The reset then removes protection from one account while the intended user stays exposed. Require the reset request to carry the account email or user identifier, have a second person confirm the match for privileged accounts, and record who approved each reset and when. Review reset logs regularly.
Stale enrollments after a role change
When someone moves to a new role, team or project, their existing enrollment and project access may no longer match their duties. An enrolled factor from a former role can keep a departed or reassigned user able to sign in if the account was not disabled. Pair every role change with a review of the user's project membership, admin rights and enrolled factors. Remove access the new role does not need, and confirm that deactivated users cannot complete a second-factor step.
Unclear ownership of recovery
When no one owns MFA recovery, help requests go to whoever answers first, and resets get done informally in chat or by email. Name a recovery owner and a backup, set the identity verification standard they must apply, and define the escalation path for locked-out super administrators. Keep the procedure in the same place as your access reviews so that reset requests and access changes are reviewed together.
Why SSO users get MFA from their provider
Medplum's MFA settings govern password logins, so users who sign in through an external identity provider are covered by that provider's multi-factor controls instead. When a user signs in with Okta, Microsoft Entra ID, Auth0 or another provider configured for Medplum, the second factor is challenged by that provider and its conditional access policies, not by Medplum. Enabling email or authenticator-app MFA in a Medplum project does not add a second prompt for these users, and disabling it does not remove the provider's controls. Before go-live, confirm with Medplum's current authentication documentation exactly how each provider configuration is treated, including whether any domain-level or per-client setting can route a user back to a password login.
The audit consequence is that evidence for SSO users lives in the identity provider. Enrollment records, factor types, sign-in logs, failed challenges and policy changes for those users will be in Okta, Entra ID or the other provider, while Medplum's audit trail shows only the resulting Medplum session and actions. An assessor asking how a clinician's login was protected will need both views, so the access control design should record which population signs in through which path, which provider policies apply to each, and who owns the evidence for each. Ask your provider for the retention period of its sign-in logs, since that determines whether a review window can be covered.
Document this split as an explicit decision rather than an assumption. List every identity provider connected to each Medplum project, the MFA and conditional access policies enforced there, any local accounts still allowed to use passwords, and the owner responsible for reviewing each. Then test each path: sign in as a password user with MFA on, sign in as an SSO user, and confirm which factor prompts appear. Repeat the test after any provider policy change, because a change on the provider side can alter Medplum access without any change inside Medplum itself.
Security and operational considerations for MFA on Medplum
MFA on Medplum is only as strong as the controls around it: the email relay that delivers codes, the session lifetimes that decide how often users re-authenticate, the admin accounts that can change MFA settings, and the logs that show what happened. Each card names the control your team owns and the question to confirm with Medplum or in your own environment.
Email relay and code delivery
When a project uses email codes, the one-time code travels through your mail relay, so the relay's authentication settings, sending domain and access rules become part of your sign-in security. Confirm which sender address and domain Medplum uses for codes on your deployment, whether your relay enforces SPF, DKIM and DMARC for that domain, and who can read the mailbox that receives codes for shared or test accounts. Ask Medplum how long a code stays valid and how many attempts are allowed before lockout.
Medplum auth docsToken lifetimes and idle sessions
MFA runs at sign-in, so the period between sign-ins is set by token lifetimes. Long-lived refresh tokens let a session continue for days after a user passed MFA, and a stolen refresh token can bypass the second factor entirely. Decide lifetimes by application risk, check how idle sessions end, and confirm with Medplum how refresh tokens are revoked on logout and password reset. Test that a revoked session cannot be renewed.
Stronger controls for admin accounts
Administrators can change project MFA settings, reset enrollments and alter access policies, so their accounts need the strongest sign-in path you can run. Prefer an authenticator app over email codes for admins, require a separate admin account for administrative work, and restrict which networks can reach the admin console. On self-hosted deployments, confirm with Medplum how the first super admin is created and who holds that credential.
Logging and monitoring MFA events
Enrollment, failed codes, lockouts and resets should appear in a log your security team reviews, not only in the application. Define which MFA events forward to your SIEM, set alerts for spikes in failed codes or resets for the same user, and document who approves a reset. Confirm with Medplum which MFA events are written to the audit log, how long they are retained, and whether they can be exported without database access.
Keeping MFA separate from machine authentication
MFA applies to password logins for people. Scripts, backend services and integrations authenticate with client credentials or signed tokens, and those flows do not prompt for a code. Do not assume that enabling MFA secures integration traffic. Inventory every ClientApplication, record which flow it uses and how its secret or key is stored and rotated, and confirm with Medplum how client credentials are scoped to an access policy.
What to confirm in your environment before you enable MFA
Before you turn on multi-factor authentication in Medplum, confirm which Medplum version your environment runs and whether the MFA options you plan to use appear in the documentation for that exact version. Medplum ships patch releases weekly and major releases once a year, so a setting described in the current docs may not match the build you operate. Check the running version on your server, then compare it against the Medplum authentication docs. The supplied research does not describe the MFA settings in detail, so treat the documentation for your version, and Medplum's answer to your questions, as the source of truth rather than this page.
Next, test the email delivery path if you plan to use email codes. On a self-hosted deployment, the mail configuration is yours to build and operate, so an email code only works if your outbound mail service delivers it reliably to every user's inbox. Send test codes to real staff accounts across the mail domains and providers your users use, check spam filtering and sender authentication, and confirm how long a code remains valid. Record who owns the mail relay and what happens to login when it fails, because users locked out of email codes will need a fallback path that you have agreed in advance.
Then map how people actually sign in. MFA in Medplum applies to password logins, so staff who sign in through a corporate identity provider get their second factor from that provider, and you need to know which groups use which path. List every login route in use, including patient access, practitioner accounts, admin consoles and any shared or test accounts, and confirm which of them are password-based. Finally, review every integration, script and client that authenticates with a username and password instead of a client credential or token flow, because a second factor prompt can break unattended jobs. Confirm each of these items with Medplum for your version and test them in a non-production project before changing settings for production users.
Questions teams ask before enabling Medplum MFA
How much does enabling Medplum MFA cost to set up?
No price for MFA setup is published, and a DeployOpen quote follows from the written scope, so the cost depends on the work you ask for. The effort sits mostly in planning which login paths need MFA, configuring each project, testing enrollment and reset, and documenting the result. Medplum's own costs are separate and depend on where you host: the Medplum pricing page lists Free, Production, Premium and custom Enterprise plans on Medplum Cloud, while self-hosting is a free Community option or a custom-priced Enterprise Self-Hosted plan. Ask for a quote that separates one-time configuration and testing from any recurring support or retesting, and confirm with Medplum which plan includes the features you need.
How long does a Medplum MFA rollout take for a team?
The information available to us gives no timeline, so ask for one in the written scope rather than planning from an assumed number. Duration tracks the number of projects, the number of login paths (Medplum password, email code, external provider and domain-level provider) and how many users must enroll before MFA is enforced. A single project with one login path moves faster than a deployment with several projects, a mix of password and SSO users, and a staff group that needs help recovering lost authenticator devices. Start with a pilot group, count enrollment support requests, and widen the rollout in stages once those requests settle.
What does our team need to provide for MFA setup?
Your team provides administrator access, decisions and the systems MFA depends on. That means administrator access to the Medplum projects in scope or, if you run Medplum yourselves, access to the self-hosted server and its deployment pipeline. For email codes, you need a working outbound email path and a sender address your users trust, because codes that never arrive become a help desk queue. If you use single sign-on, you also need ownership of the identity provider, since its MFA policies decide what SSO users face. Name one accountable owner for each system and agree in writing who approves changes to login settings before work starts.
Can an internal team enable Medplum MFA without outside help?
Yes, for a small deployment, an internal team can enable MFA by following the Medplum authentication documentation, provided it has an engineer comfortable with Medplum project settings and a test project to try changes first. Outside help usually makes sense when the setup spans several projects, self-hosted infrastructure, mixed password and SSO logins, or evidence that an auditor will review. Check whether your staff has time to test enrollment, reset and lockout flows, since those are where problems usually appear. Read the Medplum authentication docs first to confirm which MFA method each project supports before you decide who does the work.
What changes for users who sign in through SSO?
MFA in Medplum applies to logins that use a Medplum password. Users who sign in through an external or domain-level identity provider are governed by that provider, so the provider's MFA policy decides what they face. Confirm that the provider enforces MFA for every user who can reach Medplum, and test one account from each group. Medplum's documentation lists multiple external identity providers, such as Okta, Azure and Auth0, as an enterprise feature on its pricing page, so confirm your plan before you design around them. Also check whether any account can still sign in with a password, because that account would fall under Medplum's MFA settings instead of the provider's.
What drives the effort of a Medplum MFA rollout?
Effort grows with the number of login paths, because each path needs its own test and its own support steps. The number of projects matters as well, since email code MFA is enabled per project. Enrollment support is usually the largest recurring load: users who lose a phone, change devices or never receive an email code will contact your help desk, so write a reset procedure and an identity verification step before the rollout starts. Other drivers include the number of users, whether self-hosted infrastructure needs changes, and how much logging you need to show who enrolled and when. Ask any partner to size each driver separately in the quote.
Does enabling MFA change our compliance evidence for audits?
Enabling MFA creates configuration and enrollment records you can show to an assessor, but it does not satisfy a compliance framework by itself. Medplum's compliance documentation covers HIPAA, SOC 2 Type II, ONC certification, CFR Part 11, HITRUST e1, CLIA/CAP and ISO 9001, and it describes compliance as a shared responsibility between Medplum and its customers. Your organization owns the login policy, the enrollment process and proof that the controls operated over time. DeployOpen prepares systems, controls and evidence for compliance assessments, but independent auditors and certification bodies issue any report or certification. Confirm with your assessor which records they expect before the rollout.
How DeployOpen scopes and delivers Medplum MFA work
DeployOpen approaches Medplum MFA as a scoped piece of identity work inside a self-hosted deployment. We agree which sign-in paths, MFA methods and user groups are covered, then build, test, document and hand over the configuration so your security and clinical operations teams can run it.
How we scope
- Inventory which projects and users sign in with Medplum-hosted passwords and which use external or domain-level providers.
- Decide per project whether TOTP, email codes or both apply, and record the enrollment and reset procedure each group will follow.
- Agree the written scope, deliverables and timelines before work starts, since most engagements are fixed-scope.
How we build
- Configure MFA settings for each agreed project in your Medplum environment, with changes tracked and reviewed before they reach production.
- Test enrollment, login, lockout, reset and recovery paths with test accounts that mirror each user group in scope.
- Verify that SSO users are routed to their identity provider's MFA and that the Medplum-side settings do not duplicate or contradict it.
How we hand over
- Deliver a written configuration record listing each project, MFA method, enrollment step and reset procedure.
- Provide help desk runbooks for enrollment, lost-device resets and administrator recovery, written for your support staff.
- Document the evidence your compliance team can use to show how MFA is enforced, without issuing any audit report or certification.
How we support
- Ongoing support, upgrades and continuous testing are available as retainers, so MFA settings keep working across Medplum releases.
- Confirm with your team how a retainer would cover re-testing after Medplum version upgrades and changes to identity providers.
- Ask any quote to state which MFA paths, projects and environments are included, and what a change request costs under the agreed scope.

