Organizations
Get dashboard data (Admin and SuperAdmin only)
Returns aggregate stats (total organizations / users / admins) plus a per-organization listing with members. SuperAdmin sees all orgs/users; Admin sees only their own org/users.
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Response Body
application/json
application/json
application/json
curl -X GET "https://example.com/api/organizations/dashboard"{ "stats": { "totalOrganizations": 12, "totalUsers": 84, "totalAdmins": 18 }, "organizations": [ { "_id": "5f7b1c2e8a1d4e0012c3b400", "name": "Acme Corp", "address": "123 Yonge St, Toronto, ON", "phoneNumber": "+14165550100", "loginDisabled": false, "users": [ { "_id": "5f7b1c2e8a1d4e0012c3b4a6", "fullName": "Alex Admin", "email": "admin@acme.example", "accessRole": "ADMIN" } ] } ]}