Portal Sync API Scheduled Tasks are failing with WARNING message
"Error processing management request: An authentication user is required but not present".
Multiple portman users in internal identity store which was left over from previous gateway enrollments.
Release : 5.1
Component : API PORTAL
Step 1: Go to Tasks - Certificate Keys and Secrets - Manage Private Keys and note down the name of the portalman private key.
Now, from Identity Providers go to Internal Identity Provider and right-click select Search Identity Provider. Run a search on Internal Identity Provider and delete all the duplicate portalman identities other than the one which had the same name from the private key.
Check if the next Scheduled Task is successful, if it fails again go for the Step2.
Step 2: Cleanup of the portal enrollment on the gateway along with removing all the portman users from internal identity store.
Remove the enrollment of tenant gateway as per the steps in this document.
Enroll Gateway with portal and restart gateway service.