Skip to main content
POST
Fetch users holding all specified permissions (intersection)

Authorizations

Authorization
string
header
required

Enter your JWT token in the format: Bearer

Body

Serializer for listing users with department information.

username
string
required
Required string length: 1 - 150
Pattern: ^[\w.@+-]+$
email
string<email>
Maximum string length: 254
first_name
string
Maximum string length: 150
last_name
string
Maximum string length: 150
phone_number
string
Maximum string length: 50
status
string
Required string length: 1 - 20
user_type
enum<string>
  • STAFF - Staff
  • CORRESPONDENT - Correspondent
  • CONSUMER - Cape Digi Consumer
Available options:
STAFF,
CORRESPONDENT,
CONSUMER
date_joined
string<date-time>
last_login
string<date-time> | null

Response

200 - application/json

Serializer for listing users with department information.

id
string<uuid>
required
read-only
username
string
required
Maximum string length: 150
Pattern: ^[\w.@+-]+$
name
string
required
read-only
inactive_alert
boolean
required
read-only

True if the user has not logged in for 2 or more business days (Mon–Fri).

None last_login (never logged in) is also treated as inactive.

department
string
required
read-only
section
string
required
read-only
email
string<email>
Maximum string length: 254
first_name
string
Maximum string length: 150
last_name
string
Maximum string length: 150
phone_number
string
Maximum string length: 50
status
string
Maximum string length: 20
user_type
enum<string>
  • STAFF - Staff
  • CORRESPONDENT - Correspondent
  • CONSUMER - Cape Digi Consumer
Available options:
STAFF,
CORRESPONDENT,
CONSUMER
date_joined
string<date-time>
last_login
string<date-time> | null