VEEVAVAULT_1
Issue
Glean was unable to authenticate with your Veeva Vault instance during connector setup validation. This error occurs when Glean attempts to authenticate using the provided credentials (username/password or OAuth). Possible causes include:
Username/Password Authentication
- The Vault URL is incorrect, unreachable, or does not point to a valid Veeva Vault instance.
- The username or password entered during setup is incorrect.
- The username is missing the domain suffix (e.g., should be
glean-api-user@yourdomain.com, not justglean-api-user). - The user account is inactive or the password has not been set.
- A firewall or network policy is blocking access to the Vault API.
OAuth Authentication
- OAuth Token Failure — Verify that the Token Endpoint URL, Client ID, and Client Secret are correct. Ensure your IdP enables the
client_credentialsgrant type for the OAuth client. - OAuth Session Exchange Failed — the OIDC Profile ID does not match the profile configured in Vault Admin. If using an API gateway, the Session Exchange Base URL or required custom headers may be incorrect.
- API Gateway (Kong) Errors — custom headers are incorrectly configured, or the OAuth client is not authorized for the gateway routes.
Resolution
To fix this issue:
Username/Password Authentication
- Verify the Vault URL is correct and accessible. In Glean, enter only the Vault domain (for example
company.veevavault.com) withouthttp://orhttps://. You can test reachability by openinghttps://company.veevavault.comin a browser (use your actual domain). - Confirm the username includes the full domain suffix (e.g.,
glean-api-user@yourdomain.com). This is shown on the user's profile page in Veeva Vault under Admin > Users & Groups > Vault Users. - Confirm the password is correct. If you are unsure, reset it by navigating to the user's profile page and selecting Actions > Reset Password.
- Ensure the user account is active. Check that the Activation Date in the user's Details section is set to today or earlier.
OAuth Authentication
- OAuth Token Failed: Verify the Token Endpoint URL is correct and reachable. Confirm the Client ID and Client Secret match what is configured in your identity provider. Ensure the OAuth client has the
client_credentialsgrant type enabled in your IdP. - OAuth Session Exchange Failed: Verify the OIDC Profile ID matches the profile configured in Vault Admin under Admin > Settings > OAuth 2.0 / OpenID Connect Profiles. If using an API gateway, verify the Session Exchange Base URL points to the correct gateway endpoint and that any required custom headers are configured.
- API Gateway (Kong) Errors: Verify that custom headers (e.g., API keys, routing headers) are correctly configured in the Glean Admin UI. Confirm the OAuth client is authorized for the gateway routes used by the Veeva Vault API.
For more information, see Veeva Vault connector.
For additional assistance, contact Glean Support at https://support.glean.com.