--- title: "Identity HMAC Verification (SHA256)" slug: "identity-hmac-verification-sha256" updated: 2026-11-23T12:30:38Z published: 2026-11-23T12:30:38Z canonical: "support.gainsight.com/identity-hmac-verification-sha256" --- > ## Documentation Index > Fetch the complete documentation index at: https://support.gainsight.com/llms.txt > Use this file to discover all available pages before exploring further. # Identity HMAC Verification (SHA256) ## Overview The purpose of identity verification is to verify that your users are who they claim to be. When you enable identity verification, it empowers Gainsight PX to use HMAC ID so that there is a secure way to validate if a logged-in user tries to impersonate another user. This feature should be configured via account product settings. The identity verification works by using a server-side generated HMAC (Hash-based Message Authentication Code), using SHA256, on either your user’s email or user_id. Once identity verification is enabled, Gainsight PX does not accept any requests for a logged-in user without a valid HMAC. > [!WARNING] > Important > > This article describes HMAC identity verification using the user hash method. Gainsight PX also supports identity verification using a lookup key. For more information on that method, refer to [*HMAC Identity Verification (Lookup Key)*](https://support.gainsight.com/PX/Administration/Security/HMAC_Identity_Verification_(Lookup_Key)). **Note**: HMAC based identity verification is currently supported in Gainsight PX WebApp and Mobile SDKs. ## Enable Identity verification Under Account Settings Once your server side has implemented identity verification using the hash key, you can enable it by navigating to **Administration** > **Identity Verification.** ![Security_IdentityVerfication_IdentityHMACVerification.jpeg](https://cdn.us.document360.io/8e136619-829c-49c5-afb1-72de86f13288/Images/Documentation/Security_IdentityVerfication_IdentityHMACVerification.jpeg?sv=2026-02-06&spr=https&st=2026-11-24T17%3A17%3A29Z&se=2026-11-24T18%3A17%3A29Z&sr=b&sp=r&sig=%2B5E9RoswJYgOUb2I7CD6LTqqIOgzsSu4YZtbp0ihpCw%3D) ## Pass the User Hash in the Identify Call Use the following code to pass the user hash: ```plaintext aptrinsic("identify",  {  //User Fields    "id": "unique-user-id", // Required for logged in app users    "email": "userEmail@address.com",    "firstName": "John",    "lastName": "Smith",    "signUpDate": 1522697426479, //unix time in ms    "userHash": "" // optional transient for HMAC identification  },  {  //Account Fields    "id":"IBM", //Required    "name":"International Business Machine" }); ```