Get All Users
GET/users
Fetches all SDP users within the organization, whether they are active yet or not.
Responses
- 200
- 401
- 403
Returns a paginated list of User Details
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
id stringrequired
first_name stringrequired
last_name stringrequired
email stringrequired
roles string[]required
is_active booleanrequired
[
[
{
"id": "7a4c6555-1f73-49b3-a211-f95bd2b8ec90",
"first_name": "John",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"developer"
],
"is_active": true
},
{
"id": "5f4df1dd-c84f-482a-84ad-541ffd46e75a",
"first_name": "Jane",
"last_name": "Doe",
"email": "[email protected]",
"roles": [
"financial_controller"
],
"is_active": false
}
]
]
Unauthorized
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
extras
object
status number
message string
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
{
"error": "Not authorized",
"extras": {
"status": 401,
"message": "Not authorized"
}
}
Forbidden
- application/json
- Schema
- Example (from schema)
- Example
Schema
error string
{
"error": "Forbidden"
}
{
"error": "Forbidden"
}
Loading...