Gigya Job Openings

ids.setAccountInfo JS

Skip to end of metadata
Go to start of metadata



This method sets account data into a user's account. The method accepts a list of optional parameters each defining a field/object in the account. The parameters that are passed in the method modify the relevant fields, and the other fields remain unchanged.

Note: If you plan on integrating Gigya's Profile Management (IDS), we highly recommend reading the Identity Storage Guide. Profile Management (IDS) is a premium platform that requires separate activation. If it is not yet a part of your existing site package, please contact Gigya Support via the Support link in the top menu of your Console Dashboard or email

Note: This method is also supported in our REST API. If you wish to execute this method from your server, please refer to

REST API > ids.setAccountInfo.






The following table lists the available parameters:

profileProfile objectThe user's profile information as described in the Profile object. You may add to the predefined Gigya fields your own custom profile fields.
dataJSON objectThe custom data object to be set. Any data that you want to store regarding the user, which isn't part of the Profile object can be stored here.
callbackfunctionA reference to a callback function. Gigya calls the specified function along with the results of the API method when the API method completes.
The callback function should be defined with the following signature: functionName(response).

Code Sample

<script type="text/javascript">
var idsParams = {
            profile: { 'email': '' }


  • This sample is not meant to be fully functional code. For brevity's sake, only the code required for demonstrating the API call itself is presented.
  • To run the code on your own domain, add your Gigya API key to the gigya.js URL. A Gigya API key can be obtained on the Site Dashboard page on Gigya's website. Please make sure that the domain from which you are loading the page is the same domain name that you used for generating the API key.
  • In some cases it is necessary to connect/login the user to a provider ? prior to calling the API method. You can learn more in the Social Login guide.