207001 - OPNsense Authorization Failed
Agent error code #207001 indicates that the agent authenticated with OPNsense successfully, but the API user lacks the privileges required to manage aliases. OPNsense returned HTTP 403 (Forbidden).
This error is distinct from authentication failures (#207000), which occur when the API key/secret pair is not accepted. Error #207001 means the credentials are valid but cannot perform the operation.
Common causes include:
- The API user is not a member of a group with alias management privileges
- The group's privileges do not include both Firewall: Alias: Edit and Firewall: Aliases
- The privilege required to apply alias changes (named Firewall: Alias: Apply or similar depending on the OPNsense version) is missing
- OPNsense has been upgraded and the privilege names have changed but the group was not updated
Steps to Resolve
Verify Group Membership
- Log into the OPNsense web UI
- Navigate to System > Access > Users and open the API user
- Confirm the user is a member of a group dedicated to API access (rather than the default
adminsgroup, which is fine but broad)
Verify Group Privileges
For the full list of privileges and the setup steps, see the OPNsense setup guide.
Retry the Operation
- Trigger a fresh grant by logging in as a test user via the Knocknoc user portal
- Confirm the user's IP now appears in the alias under Firewall > Diagnostics > Aliases
- If the error persists, double-check that you saved the privilege changes and that the user is still in the modified group