Newbie Question - Difference between Users under Collection Types vs Settings / Admin Panel / Users

Newby here, literally installed Strapi a few hours ago for the first time;

Can someone please explain the difference in Users: In the localhost:1377/admin UI there is

  1. a Users under collection types, where I can Add New User;
  2. in Settings/Admin Panel / Users, I can also Create New User

Yours confused.

Easy:
First one are user-permission plugin users: they will user your api but they never will have access to your admin panil.
Second one are the admin panel users: acccess to admin panel, no access to API.

Not entirely true but that’s effectively what it is intended. Technically the JWT returned for Admin users can use the API endpoints as well.

I tried to logged in with a super user admin on our application, and i couldn’t.

You won’t be able to use the /auth/local endpoint with an admin user but you can use the /admin/login endpoint and use that admin JWT on the users-permissions endpoints.

1 Like

@DMehaffy
I tried to login using the given link:

http://localhost:1337/admin/login and the request had the body: 
{
  "identifier": user@email.com
  "password": password
}

But got the response as:

{
    "data": null,
    "error": {
        "status": 400,
        "name": "ApplicationError",
        "message": "Missing credentials",
        "details": {}
    }
}

what am I doing wrong? Thanks in advance.

You are using the wrong keys for the admin endpoint. If you go try and login to the admin panel and look at your F12 menu (network tab) you can see the body payload sent and the URL it’s sent to.

1 Like