Class LogsClient
- Namespace
- Auth0.ManagementApi.Users
- Assembly
- Auth0.ManagementApi.dll
public class LogsClient : ILogsClient
- Inheritance
-
LogsClient
- Implements
- Inherited Members
- Extension Methods
Methods
ListAsync(string, ListUserLogsRequestParameters, RequestOptions?, CancellationToken)
Retrieve log events for a specific user.
Note: For more information on all possible event types, their respective acronyms and descriptions, see Log Event Type Codes.
For more information on the list of fields that can be used in sort, see Searchable Fields.
Auth0 limits the number of logs you can return by search criteria to 100 logs per request. Furthermore, you may only paginate through up to 1,000 search results. If you exceed this threshold, please redefine your search.
public Task<Pager<Log>> ListAsync(string id, ListUserLogsRequestParameters request, RequestOptions? options = null, CancellationToken cancellationToken = default)
Parameters
idstringrequestListUserLogsRequestParametersoptionsRequestOptionscancellationTokenCancellationToken
Returns
Examples
await client.Users.Logs.ListAsync(
"id",
new ListUserLogsRequestParameters
{
Page = 1,
PerPage = 1,
Sort = "sort",
IncludeTotals = true,
}
);