M2EE password needed.

0
Hi, I am running my application locally on studio pro and I would like to work with the data from the admin port. I need the M2EE admin password but I am unable to obtain it and the documentation is not really helping me.
asked
3 answers
0

I became curious about this question. Here is how I found the M2EE password on my windows machine:

  1. downloaded Process Explorer (searched online for this tool)
  2. started Process Explorer from the download (extract the zip file and then open the folder. double click on Process Explorer exe)
  3. started Studio Pro
  4. In Process Explorer, locate the StudioPro.exe node
  5. In Process Explorer, under the StudioPro.exe node, you will see a node called javaw.exe
  6. Right mouse on that node and click Properties
  7. In the Properties window, click on the Environment tab
  8. M2EE password will be one of the properties


Hope that helps,

Mike

answered
0

Hi,


When running locally from Studio Pro, you do not manually set or define the M2EE password yourself. Studio Pro automatically generates and injects it into the runtime when the app starts.

That’s why you won’t find it in the UI or in normal configuration screens.

If you want to retrieve it while running locally, you can find it in the runtime environment variables. The easiest way is:

  1. Start the app from Studio Pro.
  2. Open the console output.
  3. Look at the runtime environment variables.

You will find the value under something like:


MXRUNTIME_M2EE_PASSWORD

Alternatively, you can inspect it from the running process environment variables.

Important clarifications:

  • The M2EE password is not the admin user password.
  • It is only used for the admin port (default 8090).
  • It is only available for local and on-prem deployments.
  • In Mendix Cloud, you do not get direct access to the M2EE admin handler.

If you want a simpler way to get runtime information while developing locally, you can also consider using JMX or the Runtime APIs instead of directly calling the admin port.


So in short: you don’t “create” the M2EE password locally — Studio Pro already sets it. You just need to retrieve it from the runtime environment.


answered
-1

Hi Rick van Huffel


Locally in Studio Pro, the M2EE (admin) password is not your MxAdmin app login. It’s a separate runtime “admin handler” secret that Studio Pro generates at run time. You can use any of these supported ways:

The clean ways :


  1. Set your own admin password before running:
    • In Studio Pro go to App → Settings → Configurations → (your config) → Server and set Admin port (default 8090).
    • In Runtime → Advanced set the Admin password (or equivalent field in your version). Then POST to http://localhost:<adminPort>/rest/admin/<action> with header X‑M2EE‑Authentication: <Base64(admin_password)>.
  2. On Windows Service / on‑prem installs:

Open your app’s Settings.yaml and read Runtime → ServerPassword (that value is the M2EE password; Base64‑encode it for the header).


If you already started locally and need the auto‑generated value

  • Inspect the running Java process env/args and read M2EE_ADMIN_PASS (e.g., with Process Explorer on Windows). Community guidance shows retrieving it and using its Base64 in the X‑M2EE‑Authentication header.


Quick reminders

  • Admin handler is only for local/on‑prem; in Mendix Cloud you don’t access it directly—use Portal metrics instead.
  • Header format: Content‑Type: application/json + X‑M2EE‑Authentication: <Base64(password)>. This is not the MxAdmin user password.

I hope this helps


answered