get https://customer.my.onetrust.com/api/access/v1/login-history
Use this API to retrieve the login history of all users or a specific user for audit purposes.
Things to Know
- If a date range and specific
userId
is not specified in the request, the response will include the login history for all users over the past 7 days.- If a date range is not specified but a specific
userId
is specified in the request, the response will include the login history for that specific user over the past 365 days.- If a date range is specified but a specific
userId
is not specified in the request, the response will include the login history for all users over the specified date range.- If the date range does not fall within the last 365 days, the response will return an error.