When attempting to make a connection to a stored account object with PSM, you receive the following error in the PVWA: "Object reference not set to an instance of an object"
When making a connection over PSM, the account's platform determines the configured PSM server to use when connecting (UI & Workflows > Privileged Session Management). When looking this PSM server up under Options > Privileged Session Management > Configured PSM Servers, you can see the PSMConnect and PSMAdminConnect objects listed under the Object and AdminObject parameters, respectively. Likely, what the issue here is that the object IDs listed in the configuration are not able to be found by their listed names in the PSM safe, where the objects get stored.
You can validate this by reproducing the issue and checking the PVWA log, specifically CyberArk.WebApplication.log, for errors similar to this:
CASTM004E Object [<psmconnect_object>] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser]) CASTM004E Object [<psmadminconnect_object>] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser])
The v10/v11 PVWA interface now enforces validation of all accounts to have a UserName and Password defined on the account in order to make a PSM connection. If either of those file categories are blank on the account object, this error will be thrown via the PVWA. For Cisco or other similar type of accounts where there is an Enable user type but the UserName field is not populated on the account, this error will occur.
Resolution
Make sure that the PSM server defined in Platform Management > UI & Workflows > Privileged Session Management is the correct PSM server.
Ensure that the objects defined in the PSM server definition exist in the PSM safe and are not deleted.
Ensure that all accounts have a username and password supplied on the account details. Specifically for Cisco enable accounts, ensure the UserName field is populated with "enable" in addition to the drop-down for UserType also being set to "enable user".
Make sure in Master Policy, "Require privileged session monitoring and isolation" was enabled.
Additional Information
Details
SYMPTOM:
When attempting to make a connection to a stored account object with PSM, you receive the following error in the PVWA:
"Object reference not set to an instance of an object"
PROBLEM:
When making a connection over PSM, the account's platform determines the configured PSM server to use when connecting (UI & Workflows > Privileged Session Management). When looking this PSM server up under Options > Privileged Session Management > Configured PSM Servers, you can see the PSMConnect and PSMAdminConnect objects listed under the Object and AdminObject parameters, respectively. Likely, what the issue here is is that the object IDs listed in the configuration are not able to be found by their listed names in the PSM safe, where the objects get stored.
You can validate this by reproducing the issue and checking the PVWA log, specifically CyberArk.WebApplication.log, for errors similar to this:
CASTM004E Object [<psmconnect_object>] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser])
CASTM004E Object [<psmadminconnect_object>] was not found on Safe [PSM] (Vault [CAMainVault] safe [PSM] user [PVWAAppUser])
The v10/v11 PVWA interface now enforces validation of all accounts to have a UserName and Password defined on the account in order to make a PSM connection. If either of those file categories are blank on the account object, this error will be thrown via the PVWA. For Cisco or other similar type of accounts where there is an Enable user type but the UserName field is not populated on the account, this error will occur.
SOLUTION:
Make sure that the PSM server defined in Platform Management > UI & Workflows > Privileged Session Management is the correct PSM server
Ensure that the objects defined in the PSM server definition exist in the PSM safe and are not deleted
Ensure that all accounts have a username and password supplied on the account details. Specifically for Cisco enable accounts, ensure the UserName field is populated with "enable" in addition to the drop-down for UserType also being set to "enable user".