#
Getting users profiles
#
Getting user profiles
Admin only
To get the profiles of a user, use the following endpoint:
GET /api/user/{userID}/profiles
With {userID}
being the ID of the user to get the profiles of.
Note
This endpoint is not paginated yet, however depending on developer feedback, this might change in the future.
On success the response will be the default API response with the data being a data array of profiles.
[
{
"serial": "string",
"name": "string",
"revokeReason": null,
"revokeTime": null,
"creationTime": "2023-12-15T15:30:52.768Z",
"expirationTime": "2023-12-15T15:30:52.768Z",
"authable": true,
"lastLogin": "2023-12-15T15:30:52.768Z",
"deviceType": "string",
"owner": "string"
}
]
#
Getting user profiles V2
Admin only
Paginated
Version 2.0
To get the profiles of a user, use the following endpoints:
GET /api/user/{userID}/profiles
POST /api/user/{userID}/profiles
With {userID}
being the ID of the user to get the profiles of.
On success the response will be the default API response with the data being a data array of profiles.
[
{
"serial": "string",
"name": "string",
"revokeReason": null,
"revokeTime": null,
"creationTime": "2023-12-15T15:30:52.768Z",
"expirationTime": "2023-12-15T15:30:52.768Z",
"authable": true,
"lastLogin": "2023-12-15T15:30:52.768Z",
"deviceType": "string",
"owner": "string"
}
]
The lastLogin
field is a placeholder for future functionality and does not currently reflect the last time this certificate was used
The search
parameter for this paginated endpoint is a string that will be used to search for profiles with a serial that contains the search string.
The following keys are supported for the sort
parameter:
The following keys are supported for the filter
parameter: