FortiSOAR Knowledge Base
FortiSOAR: Security Orchestration and Response software provides innovative case management, automation, and orchestration. It pulls together all of an organization's tools, helps unify operations, and reduce alert fatigue, context switching, and the mean time to respond to incidents.
jhimanshu
Staff
Staff
Article Id 379579
Description

This article provides a solution to handle failure of the Audit Log Cleanup playbook with the following error: 

 

403 Client Error: Forbidden for url: https://localhost/api/gateway/audit/activities/delete

 

Scope FortiSOAR.
Solution

Once the Audit log purging is enabled, the playbook is scheduled and is triggered by Playbook Appliance. 

The default roles on FortiSOAR do not include the Delete permission on Audit log activities for security purposes. The playbook Appliance requires a Delete permission on Audit Log Activities to successfully complete the deletion.

This can be verified by checking the 'Effective Role permission' of the Appliance 'Playbook'.

For FortiSOAR versions older than 7.5.0: Navigate to Settings -> Appliance -> Playbook.

For versions later than 7.5.0, navigate to Settings -> Access Keys -> Under the Appliance Tab -> Playbook.

 

  1. Check the roles linked to the appliance. 
  2. Provide delete permission to one of the roles, the roles present can be seen at Settings -> Roles.
  3. Save the changes and verify the 'Effective Role permission' of the appliance as below.
                 

image (13).png
Trigger the schedule and verify the playbook execution.

 
If the issue with Audit log cleanup playbook persists, reach out to Fortinet Support.

Contributors