Audit Details of Specified Principal (User)
This API will retrieve audit details of a specified principal (user).
NOTE: This API is available as of Rev v7.24 and September 2018.
GET
/network/audit/accounts/{accountId}/principals/{principalId}
Request Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| principalId | string | ID of the principal (user) | Yes |
| fromDate | date-time | Valid start date | Yes |
| toDate | date-time | Valid end date. Must be greater than the start date. | Yes |
| nextContinuationToken | string | Id from subsequent request to get next set of records. | No |
Example Response
{
"general": {
"messageKey": "string",
"entityKey": "string",
"entityId": "string",
"when": "2018-08-30T13:20:01.822Z",
"principal": "string",
"previousState": "string",
"currentState": "string"
},
"header": {
"totalRecords": 0,
"nextFromDate": "2018-08-30T13:20:01.822Z",
"nextContinuationToken": "string"
}
}
Response Codes
| Code | Description |
|---|---|
| 401 | Unauthorized error |
| 500 | Internal server error |