View Audit Log events for an organization in the WorkOS Admin Portal.
Set up the Admin Portal so your customers’ IT admins can view and export Audit Log events. Generate a portal link through the API by providing the Organization ID and specifying the intent as audit_logs.
import { WorkOS } from '@workos-inc/node'; const workos = new WorkOS('sk_example_123456789'); const { link } = await workos.portal.generateLink({ organization: 'org_01EHZNVPK3SFK441A1RGBFSHRT', intent: 'audit_logs', }); // Redirect to link
Navigate to the provided link to see the following view. Users can view and export Audit Log events just as they can through the WorkOS Dashboard.
