202051 - Admin User Not Found on FortiManager
Uploading..Agent error code #202051 indicates that the agent attempted to update a trusted host entry for a FortiManager administrator, but the specified username does not match any administrator account on FortiManager. This error applies to Active (FortiManager Trusted Hosts) mode only.
FortiManager returned a JSON-RPC status code of -2 (object not found) when the agent tried to access /cli/global/system/admin/user/<username>.
Common causes include:
The Knocknoc username does not match the FortiManager Administrator username (names are case-sensitive)
The FortiManager administrator account was deleted or renamed
The administrator account exists in a different ADOM or context than expected
A typo in the username configured in Knocknoc or on FortiManager
Steps to Resolve
Verify the Username Matches
In the Knocknoc admin interface, check the username assigned to the user for this Knoc
On FortiManager, navigate to System Settings > Administrators and locate the admin user
The Knocknoc username must match the FortiManager Administrator username exactly, including case
If there is a mismatch, update the Knocknoc username to match
Verify the Admin User Exists on FortiManager
Log into FortiManager and navigate to System Settings > Administrators
Confirm the administrator account exists and is visible in the list
If the account was recently deleted or renamed, recreate it or update the Knocknoc username to match the new name
Check for Special Characters
FortiManager administrator usernames may contain characters that need to be handled carefully
Ensure the username does not contain leading or trailing whitespace
Verify the username in Knocknoc is entered without any extra characters
Still Having Issues?
We can help you out, contact us at support@knocknoc.io.