Audit export POST fails with 403 for deleted audiences in AEP
In Adobe Experience Platform, when an audience is deleted, you need audit logs to identify who created or deleted the audience and when these actions occurred. The user interface only displays audit logs from the past 90 days, while the Audit Query API provides access to up to 365 days of logs in 90-day intervals. Attempting to export audit logs as CSV files using a POST request results in a permission error. To fix this, retrieve audit log data using the supported GET method and convert the output if CSV format is required.
Description description
Environment
- Product: Adobe Experience Platform
- Constraints: Audit log retention is 365 days; UI access is limited to the past 90 days
Issue/Symptoms
- You need details about audience creation or deletion for an audience deleted several months ago.
- The Adobe Experience Platform UI does not display audit log entries older than 90 days.
- The Audit Query API
GETmethod successfully retrieves audit log data. - Using the
POSTmethod to generate a CSV file returns a 403 Forbidden permission error.
Resolution resolution
To fix this issue, follow these steps:
- Use the Audit Query API
GETmethod to retrieve audit log data, as the API supportsGETrequests only for public export access. - Query audit logs in 90‑day intervals, as the Audit Query API allows retrieval of data for up to 365 days but enforces interval limits.
- Download and save the retrieved audit log data locally.
- If the downloaded file is in JSON format, use external tools or services to convert it into CSV format if required.
- Do not use the
POSTmethod for direct CSV export, because it returns a permission error with the current integration scope, which is limited to View User Activity Log. - Understand that the public export API is designed as a
GET‑only endpoint and does not supportPOSTrequests, which is why aPOSTrequest results in a 403 Forbidden error. - Verify that the required audit log data has been successfully retrieved and converted for review.
Notes:
- The Adobe Experience Platform UI displays audit logs for only the past 90 days. Audit logs older than 90 days must be accessed through the Audit Query API.
- The
POSTmethod for generating CSV exports is not supported with standard permissions, according to the current public endpoint design. - External tools can assist with converting JSON files to CSV format, if needed.
Related reading
recommendation-more-help
3d58f420-19b5-47a0-a122-5c9dab55ec7f