Getting Users

Endpoints to retrieve information about users. These endpoints allow you to fetch all active users, filter users by their permission type (Admin, Normal, or Restricted), or look up specific users by their ID. All endpoints require authentication via an API token.

Getting all active users
GET /api/v1/users/

Getting all active users by permission type ( Possible values: A | N | R. )
GET /api/v1/users/?permissions=N

Getting a specific user ( Possible values: The numeric ID for the user. This can be retrieved for each user in the response for all active users. )
GET /api/v1/users/[ USER ID ]/

Getting all active users

curl 'https://acmeinc.datareportive.com/api/v1/users/' -X GET -H "Authorization: Token [ TOKEN ]"

Getting all active users by permission type

curl 'https://acmeinc.datareportive.com/api/v1/users/?permissions=N' -X GET -H "Authorization: Token [ TOKEN ]"

Getting a specific user

curl 'https://acmeinc.datareportive.com/api/v1/users/[ USER ID ]/' -X GET -H "Authorization: Token [ TOKEN ]"