#Create new Admin User on Server

2 messages · Page 1 of 1 (latest)

cobalt rover
#

I don’t understand how we can create an admin user on Medusa server. Do I need to ssh into the server and run the „medusa user“ command? Generally, we need to bulk upload our (50k) products via the admin api somehow which is why we need an API key from an admin user.

I understand I can seed the admin, but when I then create the api key for that user in the Postgres to connect eg via curl it tells me the key is not valid.

  1. Am I maybe setting up the admin wrong (we use railway)
  2. how do I need to make the call from curl including the API key so that Medusa server actually authenticates my request
cobalt rover
#

This is a huge blocker for us atm. I try to create an admin user including a valid API key on the server. It tells me that the API key is invalid on each request. We have deployed our app on railway, so it’s pretty impossible to control the app from the CL. How come that admin teammates are not saved in the Postgres public.user table? They are nowhere to be found somehow