User

List users in organization and team (filtered)

POST
/api/user/list

Returns users filtered by organizationId and/or departmentId. Visibility is further constrained by the caller access role.

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

curl -X POST "https://example.com/api/user/list" \  -H "Content-Type: application/json" \  -d '{    "organizationId": "64ee9a8b1e7f2a0011223344",    "departmentId": "64eea1110000000000000020"  }'
[  {    "_id": "5f7b1c2e8a1d4e0012c3b4a6",    "fullName": "Sam Patel",    "email": "sam.patel@acme.example",    "accessRole": "AGENT",    "organizationId": "64a1b2c3d4e5f60012345678"  }]