SIA - Integration with Self-Hosted Vault fails due to "Error: 502 - Error in Identity client occurred. Failed to get user principal name"
Symptom
For SIA environment that is integrated with a Self-Hoisted vault, when attempting to establish an RDP or SSH connection, you may encounter the following error:
Error: 502
Description: Error in Identity client occurred. Failed to get user principal name.
This error typically appears during the “Retrieving account data and secret” step after successful authentication and tunnel creation.
Example from Session Diagnostics page:
Environment
Secure Infrastructure Access (formerly DPA) DPA for SSH;DPA for RDP
Identity and SIA environment that is integrated with a Self-Hoisted vault
Cause
The error occurs because the userPrincipalName (UPN) attribute is missing for the authenticated user in the Identity directory. The SIA integration relies on UPN for user identification. If this attribute is not defined, the integration fails.
Common reasons for missing UPN:
- SCIM-based provisioning in Idira Identity, which often does not populate UPN.
- Use of an external directory service other than LDAP, which may not map UPN correctly.
Resolution
Possible resolutions:
-
Verify UPN Attribute in Identity Directory
- Ensure that the
userPrincipalNameattribute is defined for all users in the Identity directory.
- Ensure that the
-
Check Provisioning Method
- If using SCIM for provisioning, confirm that UPN is included in the attribute mapping.
-
Configure External Identity Providers Correctly
- Any third-party SSO provider (e.g., EntraID) must be configured as an External Identity Provider (eIDP), not as a Directory Service.
- Navigate to:
Do NOT configure under:Identity Administration > Settings > Users > External Identity ProvidersIdentity Administration > Settings > Users > Directory Services
-
Example
- For EntraID SAML integration, ensure it is listed under External Identity Providers.
Official document reference:
https://docs.cyberark.com/pam-self-hosted/latest/en/content/pasimp/integrate-with-sia.htm