CPM-The data protection operation was unsuccessful
Symptom
When attempting to run plugins using the PluginManagerUser, often after an upgrade the following error can present itself when attempting verify/change/reconcile using PluginManagerUser.
EXT01 :: Got exception : The data protection operation was unsuccessful.
This may have been caused by not having the user profile loaded for the current thread's user context,
which may be the case when the thread is impersonating..
The CPM is trying to change this password because its status matches the following search criteria: ResetImmediately
Environment
Privileged Access Manager (PAM, self-hosted) Central Policy Manager (CPM)
Cause
This tends to be because of an problem loading the PluginManagerUser's profile on the CPM.
Resolution
Recreate the PluginManagerUser's profile by following the steps outlined below:
Log into the PrivateArk Client as an administrator and navigate to the "PasswordManager_Accounts" safe.
Double-click on the PluginManagerUser and copy its password. Paste it into a notepad to use in the next steps.
Before navigating away from PrivateArk client, be sure that you have not locked PluginManagerUser by right-clicking and making sure that 'Unlock File' is still greyed out.
On the CPM, open an administrative command prompt and run the following command:
runas.exe /user:PluginManagerUser cmd.exe
After this, you will be prompted for the PluginManagerUser's password.
If successful, a new command prompt will open as the PluginManagerUser...
Once all steps are completed, test the Verify/Change/Reconcile via PVWA again. PluginManagerUser should now be able to execute the plugin.