Medplum super admin tasks for self-hosters: what your team must run
Super admin tasks cover the privileged operations that a self-hosted Medplum team performs on its own server: enabling project-level features, running administrative commands and controlling who holds super admin access. A team needs them as soon as it moves past the initial install and has to switch on capabilities such as Bots, or make changes that ordinary project administrators cannot make. Because these actions reach across projects, they belong to a small, named group with a clear procedure, not to every engineer who has a login.
Medplum gives the team two routes to these tasks: the super admin console in the web app and the @medplum/cli command line tool, which installs from npm. The CLI connects to the hosted API by default, so a self-hosting team must set MEDPLUM_BASE_URL to the address of its own server before running any command. Confirm that value in every shell, pipeline and runbook before acting. A command run against the wrong base URL is an easy mistake to make and can change the wrong environment. The Medplum super admin CLI documentation lists the available commands for your version, which should be checked against the release you run.
Bots are the most common first feature to enable. A Super Admin enables Bots as a project-level setting by adding bots to the project's features, so the decision is made per project rather than once for the whole server. Record which projects have Bots enabled, who approved it and why, because Bots run server-side logic with access to project data. Your team should also confirm which super admin accounts exist, how they authenticate and how their use is logged before anyone is granted the role. The Medplum Bots documentation describes how the feature is configured and used once it is switched on.
Which admin surface fits which task
The super admin console is the browser-based surface for privileged work across the server. Teams use it to look at projects, inspect how a deployment is configured and make changes that a single person may need to make while watching the outcome. Because it is interactive, it is suited to one-off reviews and decisions that benefit from a visible confirmation step. It is a poor fit for repeated or bulk changes, because nobody can reproduce a series of clicks from a ticket later.
- Good for: reviewing project state and confirming a change took effect after it was made by another route.
- Good for: one-off, supervised changes where a second person can watch the result.
- Poor fit for: bulk or repeated changes across many projects, which are hard to repeat and audit by hand.
- Poor fit for: routine automation, which belongs in version-controlled scripts run by a pipeline.
- Access: restrict who can open it, since it can reach every project on the server.
Before relying on the console for any task, confirm with your Medplum release notes which screens and actions exist in your version, and record each privileged action in your change log.
The Medplum CLI is installed from npm as @medplum/cli and connects to the hosted API by default. A self-hosted team points it at its own server by setting MEDPLUM_BASE_URL to the base address of that server. Because commands are text, the CLI suits repeatable work that can be reviewed, stored and run from a pipeline. It is the surface to prefer for changes that must be reproduced in a second environment, such as staging and then production.
- Good for: scripted, repeatable administration that can be stored in version control.
- Good for: running the same change against staging and production in the same way.
- Poor fit for: pointing at the hosted API by mistake, which happens if
MEDPLUM_BASE_URLis unset or wrong. - Poor fit for: keeping long-lived privileged credentials in shell history or plain-text scripts.
- Check: confirm the target host before every privileged command, for example by printing the configured base URL in the same pipeline step.
Confirm the exact commands available for your installed version in the Medplum super admin CLI documentation before you write any runbook around them.
Some capabilities are not on by default for a project. Bots are a project-level setting that a Super Admin enables by adding bots to the project's features. This is a per-project decision, so it changes what one project can do without changing the whole server. Teams should treat feature enablement as a governed change, because enabling Bots lets a project run server-side logic that touches its data.
- Good for: turning on Bots for a specific project after a documented review.
- Good for: keeping feature flags per project so other tenants are not affected.
- Poor fit for: enabling features by editing the database directly, which bypasses the supported path.
- Poor fit for: assuming a feature such as async jobs or index configuration can be set the same way as Bots. Only the Bots enablement method is confirmed here, so check the Medplum documentation for each other feature.
- Record: note the project, the requester, the approver and the date for every feature change.
Before enabling Bots, read the Medplum Bots documentation so you understand what the feature executes and which credentials it uses.
How to set up super admin access on a self-hosted Medplum server
This sequence confirms your server and super admin access, connects the Medplum CLI to your own API instead of the hosted one, and enables a project feature such as Bots with a verified change. Each step closes with a check so the team knows it is safe to continue.
Confirm the server URL and super admin access
Identify the base URL of your self-hosted Medplum API and the operator who holds Super Admin rights on the server. Confirm with the person who deployed the stack which URL serves the API and which accounts were granted Super Admin, since the CLI and console rely on both. Keep the list of privileged accounts in your change record. Done means you can name the API URL and the single account you will sign in with, and that account is not a shared login.
Install the Medplum CLI from npm
On an administrator workstation or a hardened bastion host, install the Medplum CLI, which is published on npm as @medplum/cli. Install it into a known Node.js environment and record the installed version so later troubleshooting can match the CLI to your server release. Confirm exact install and invocation syntax in the Medplum super admin CLI documentation before you run anything against production. Done means the CLI runs and reports its version locally without contacting any server.
Point the CLI at your self-hosted API
Set the MEDPLUM_BASE_URL environment variable to the base URL of your self-hosted Medplum API. The CLI connects to the hosted Medplum API by default, so this variable is what directs administrative commands to your own server. Set it in the shell session or in a secured profile, not in a shared script or repository. Done means the variable is set in the session you will use for administration and no other session on the machine points elsewhere by accident.
Verify the CLI reaches your server
Sign in through the CLI with your Super Admin account and run a read-only command that reports which server and identity the session uses. Compare the reported endpoint with your own API URL and confirm it does not show the hosted Medplum API. Check the server logs or load balancer access logs for the request so you can see your infrastructure received it. Done means the endpoint matches your server, the identity is the expected Super Admin, and the request appears in your own logs.
Review the project's current features
Before changing anything, read the current feature settings on the target project so you have a baseline to compare against after the change. Record which features are already enabled, which project the change applies to, and who approved it. Use a read-only view where one is available and confirm the exact command in the CLI documentation. Done means you have a written before state that a reviewer can compare against.
Enable Bots for the target project
Bots are a project-level setting. A Super Admin enables them by adding bots to the project's features. Make the change on a non-production project first where you have one, using the exact syntax from the Medplum Bots documentation and the CLI reference. Keep the change narrow so only the intended project is affected. Done means the command completes without error and the project is ready for your review step.
Confirm the feature change took effect
Read the project's feature settings again and compare them with your recorded baseline. Confirm that bots now appears among the enabled features and that no other feature changed. Then test the outcome from a non-admin context if your team has one, for example by checking that a bot can be created in that project. Record the timestamp, operator and command output in your change log. Done means the baseline and the new state differ only by the intended feature, and the evidence is stored with your change record.
How to handle super admin credentials safely
Super Admin access in a self-hosted Medplum deployment can change projects, features and server configuration across the whole environment. The cards below cover how to limit that access, separate it from daily work, protect the CLI and review what privileged users change.
Limit who holds Super Admin
Keep the Super Admin role with a small, named group of platform engineers who need it for upgrades, feature enablement and index work. Most day-to-day administration, such as managing project members or reviewing Bots, can be handled by people with narrower project roles. Before go-live, list every account with Super Admin, confirm each holder still needs it, and record who approved the grant. Ask your Medplum contact how project-level roles map to the tasks your team performs.
Medplum auth docsSeparate admin and daily accounts
Give each Super Admin a second account that is used only for privileged operations, and keep the everyday account for reading records, writing code and testing. This limits the damage from a phished browser session or a copied token on a laptop used for routine work. Confirm with your team how the admin account is provisioned, who can reset its credentials, and how quickly it is removed when someone changes role.
Require MFA through the identity provider
Medplum supports multi-factor authentication and external identity providers such as Google, Auth0 or AWS Cognito, as well as domain-level corporate identity providers. For admin accounts, decide whether they sign in through Medplum's own login or through a corporate provider where your MFA policy already applies. Check that the provider enforces MFA for privileged accounts and that disabling a user in the provider blocks access to Medplum.
Medplum auth docsKeep CLI tokens out of code and history
The Medplum CLI, installed as @medplum/cli, is used for super admin tasks and points at your server through MEDPLUM_BASE_URL. Do not commit credentials, .env files or shell scripts containing tokens to source control. Avoid passing secrets as inline command arguments, which can end up in shell history. Store them in your CI secret manager or a local credential store, and confirm how your team rotates and revokes them.
Log and review privileged changes
Feature changes, index configuration and project settings made by a Super Admin should leave a trail that your security team can review. Decide how often someone checks who changed what, which changes need a second person to approve them, and where the record is kept. Confirm with your Medplum support contact which audit records the server exposes for admin actions, how long they are retained and whether they can be exported to your log platform.
Plan rotation and emergency revocation
Set a rotation schedule for CLI tokens and admin credentials, and write down how to revoke them if a laptop is lost or a team member leaves. Test the revocation path before you need it, including how it affects scheduled upgrades and CI jobs that depend on the same account. Ask Medplum which token lifetimes apply to your deployment and whether your identity provider can end sessions immediately.
Which project features a Super Admin should enable, and the effects
Medplum enables most optional capabilities one project at a time, not for the whole server. Bots are the clearest example: they are a project-level setting, and a Super Admin turns them on by adding bots to the project's features. Other features such as async jobs and index configuration follow the same admin pattern, so the team should treat each feature switch as a change to a specific project rather than a platform-wide setting. Before enabling anything, confirm the exact feature name in the version you run, because feature identifiers can change between minor releases, and check the current procedure in the Medplum Bots documentation and the Super Admin CLI documentation.
Per-project enablement limits blast radius. A feature turned on in one tenant cannot change behavior in another, which matters when projects serve different business units, partners or regulated populations. The cost is administrative: every project needs its own record of which features are on, and drift between similar projects is easy to miss. A global default is simpler to operate, but it exposes every project to a capability that only some of them need. Most self-hosting teams should choose per-project enablement for anything that executes code, changes indexes or touches external systems, and reserve broader defaults for low-risk settings that the team has tested everywhere.
For change control, record four items before each change: the project identifier, the feature being added or removed, the reason and the approver, and the current Medplum version and database state. After the change, record the time, the operator, the verification performed (for example, a test Bot execution or a confirmed setting read back from the project) and any rollback steps. Store these entries alongside your infrastructure change tickets so auditors can trace who altered a project's behavior and when. Note also that index configuration changes can take time to take effect on large datasets, so plan a monitoring window rather than assuming the change is finished when the command returns.
How admin requests move from operator to self-hosted server
The diagram starts with the operator on an admin workstation, who runs the Medplum CLI or the super admin console. The CLI, installed from npm as @medplum/cli, sends requests to the API address set in MEDPLUM_BASE_URL, which for a self-hosted team must point at their own server rather than the hosted default. The trust boundary separates the workstation holding super admin credentials from the server and its database. Check that the base URL targets the intended environment before running any privileged change, because project features such as Bots are enabled at the project level and apply to whatever server the CLI reaches.
Admin requests cross from the workstation into the self-hosted environment.
Security and operational risks of privileged Medplum changes
Super admin actions reach across every project on a self-hosted Medplum server, so a single mistake can expose or alter data for many teams. The cards below cover the risks we see most often and the control to put in place for each.
Pointing the CLI at the wrong server
The Medplum CLI connects to the hosted API by default, and self-hosters must set MEDPLUM_BASE_URL to their own server. If that variable is missing or stale in a shell, a super admin command can run against the wrong environment, including a hosted or staging instance. Require the base URL to be printed and checked before any write command, and keep production and non-production credentials in separate profiles. Confirm which base URL your scripts and runbooks set, and whether anyone's shell profile overrides it.
Leaving privileged sessions open
Super admin sessions carry authority over every project, so an unattended terminal or a long-lived token is a high-value target. Set a rule that privileged sessions end when the task ends, and that tokens are not copied into tickets, chat or shared notes. Review how your identity provider and multi-factor settings apply to super admin accounts, and confirm how long a session stays valid in your deployment.
Medplum auth docsChanges made without a record
Project settings, feature flags and index changes made by hand leave no trace unless someone writes one. When an incident starts, the team needs to know who changed what and when, and whether the change was reversed. Route super admin actions through a change ticket, record the command and the reason, and keep the output with it. Confirm where your server and load balancer logs are retained and whether they capture administrative API calls.
Enabling features that widen access
Turning on project features such as Bots or async jobs adds new paths for code to read, write and call external systems. A Bot with broad permissions or a feature enabled in the wrong project can move patient data further than the original design intended. Before enabling a feature, document the data it reads, the outbound calls it can make, and the owner who approves it. Confirm which projects have each feature on today, and review them on a fixed schedule.
Medplum Bots docsDrift between environments
When a project setting, index or feature is changed in production but not in staging or in the infrastructure code, the environments stop matching and tests stop predicting production behavior. Drift also makes upgrades riskier, because a change that worked in one place may fail in another. Keep super admin changes in version-controlled scripts where practical, compare environments after each change, and confirm which settings your team manages as code and which it changes by hand.
Questions teams ask before running super admin tasks themselves
Can our team run Medplum super admin tasks without outside help?
Yes, a capable platform team can run these tasks in-house, since the super admin console and the CLI are part of the open-source project. The CLI installs from npm as @medplum/cli and, for a self-hosted server, you point it at your own instance with MEDPLUM_BASE_URL. The harder question is whether you have people who can hold privileged access safely, document each change, and repeat it after every upgrade. Teams that can staff those roles usually keep the work in-house. Teams without that depth often use an outside partner for the first setup, then take over the routine steps themselves.
What skills and effort does super admin work require?
The work needs an engineer who understands FHIR project structure, Medplum's access model, and how the server's configuration maps to your environment. Typical tasks include enabling project features such as Bots, configuring search indexes, and managing privileged accounts. Effort depends on how many projects you run, how many features you enable, and how often your teams request changes. Plan for someone to own change records, credential rotation and review of who holds super admin rights. Ask your team to name the owner before the first change, not after an incident.
How much of the cost is one-time setup and how much is ongoing admin?
Setup covers the first design: which projects exist, which features each one needs, how super admin access is stored and who can use it, and how changes are logged and reviewed. Ongoing admin covers feature requests, index changes, credential rotation, access reviews and checks after each upgrade. Setup cost rises with the number of environments and the strictness of your controls. Ongoing cost rises with the pace of project requests and the number of people allowed to make privileged changes. Ask any partner to split its quote into these two groups so you can see what recurs.
What would a partner scope in a fixed-scope engagement?
Most DeployOpen engagements are fixed-scope, so the scope, deliverables and timelines are agreed in writing before work starts. For super admin tasks, a typical scope might include a written access model for super admin credentials, a runbook for enabling Bots and other project features, a process for index configuration changes, and a handover session for your team. Ongoing support, upgrades and continuous testing are available as retainers. Ask the partner to list what is excluded, such as application code changes or work on other Medplum components, so the boundary is clear.
What does our team need to provide before work starts?
Expect to provide access to the environment where Medplum runs, a list of projects and the features each one needs, and the names of people who will approve privileged changes. You will also need to say where credentials are stored today and who holds them. Your compliance or security lead should confirm the evidence they need for change records and access reviews. If your deployment is in a private network or air-gapped setup, confirm how the CLI reaches the server and who can reach it from which location before the engagement begins.
How do upgrades change super admin tasks?
Upgrades can change the admin steps you rely on, so each upgrade needs a review of your runbooks and CLI usage. Self-hosted Medplum must be upgraded through each minor version in sequence, and skipping versions causes startup failures according to Medplum's upgrading guide. Check the Medplum releases page for the version you are moving to and confirm that your CLI version matches the server. Plan a test run of your privileged procedures on a non-production copy before you change the live environment.
How should super admin credentials be handled safely?
Keep super admin credentials out of shared notes, source code and chat, and limit who can use them. Store them in a secrets manager you control, record each privileged session with a reason, and rotate credentials on a schedule your security team sets. Review the list of accounts with super admin rights on a regular basis and remove access that is no longer needed. Medplum's compliance documentation describes compliance as a shared responsibility between Medplum and its customers, so confirm with your compliance lead which controls your organization must evidence.
How DeployOpen scopes and supports Medplum admin work
DeployOpen scopes Medplum super admin work in writing before any change is made. The scope document names each privileged task the team will run, such as enabling Bots or async jobs for a project, adjusting index configuration, rotating or retiring super admin credentials and running the Super Admin CLI against your own server. For each task it records who may perform it, which environment it applies to, the approval step, and the evidence kept afterward. Agreeing these boundaries early matters because super admin access reaches every project on the instance, so a loose boundary here affects tenants, data and audit trails all at once.
Once the scope is agreed, DeployOpen documents the admin procedure as a runbook your team can reuse. The runbook covers how to point the CLI at your deployment using MEDPLUM_BASE_URL, the order of steps for each feature change, how to check the result in the console, how to back out, and where credentials are stored and who holds them. Each procedure is tested against a non-production environment first, so the first real run is not the first time anyone has seen the commands. We also review the upgrade path with your team, because a feature change that works on one Medplum version may need checking again after a planned upgrade. Confirm with your own environment which versions and deployment method you run before the runbook is written.
After handover, DeployOpen can support the admin function on an ongoing retainer, covering reviews of changes to features and index configuration, credential rotation support, access reviews of who holds super admin rights, and retesting after upgrades. The retainer scope is set in writing like the initial engagement, so your team knows what is covered and what is billed separately. DeployOpen plans, implements, hardens and supports self-hosted open-source platforms inside your own infrastructure, and it does not hold Medplum partner status or certifications. Ask for a written scope and a quote that names each admin task, the environments it covers and the review cadence before committing.

