We know that the custom attributes created in Identity Cloud can be referenced using “fr-idm-custom-attrs”. This is a JSON blob. How can we set this attribute using AM script? Any working example in relation to script can help. I have used idRepository.setAttribute.
idRepository.setAttribute(String *userName* , String *attributeName* , Array *attributeValues* )
However, I am not sure what kind of data type has to be embedded in the Array for “fr-idm-custom-attrs”. Repo gets corrupted if we try to do below:
idRepository.setAttribute(sharedState.get("_id") , "fr-idm-custom-attrs",[JSON.stringify(attributeValue)] ). Not sure how we construct the attributeValue after setting up one of the custom_attribute value in JSON blob for “fr-idm-custom-attrs”.