Accounts Service

Admin Operations

How AccountsService() works with Admin City in trusted environments for users, sessions, and related admin-side reads.

The accounts service does not only expose registration and login to frontends. It also exposes admin-side services.

Common admin reads

const users = await admin.service("accounts").get("users");
const sessions = await admin.service("accounts").get("sessions");

What this means

It means the service is not just a frontend auth feature. It is:

  • a set of user-context entry points
  • a set of admin-side reads or maintenance routes
  • a consistent set of user and session facts underneath

Why this is tied to Admin City

Because these actions should not be executed in the browser.

They fit better in:

  • admin dashboards
  • internal operations tools
  • trusted backend scripts