Hi @sivakumarnallu,
I not sure about the endpoint you shared, if you can share details like where you got it from. I should help debug better. I think it’s not in the official collection, maybe a private endpoint.
POST:{{baseUrl}}/cc/api/user/preview/:1d
Per my understanding of your requirement if you are looking for a way to generate preview for the applied transforms you can try the Generate Identity Preview API endpoint from SailPoint Beta APIs.
Endpoint looks like this,
POST /beta/identity-profiles/identity-preview
and based on your requirement the response body should look something like the following,
{
"identityId": "<identity_id>",
"identityAttributeConfig": {
"enabled": true,
"attributeTransforms": [
{
"identityAttributeName": "displayName",
"transformDefinition": {
"type": "accountAttribute",
"attributes": {
"attributeName": "givenName",
"sourceName": "givenName",
"sourceId": "<source_id>"
}
}
}
]
}
}
This should give a response something like this,
{
"identity": {
"type": "IDENTITY",
"id": "2c91808568c529c60168cca6f90c1313",
"name": "William Wilson"
},
"previewAttributes": [
{
"name": "email",
"value": "[email protected]",
"previousValue": "[email protected]",
"errorMessages": [
{
"locale": "en-US",
"localeOrigin": "DEFAULT",
"text": "The request was syntactically correct but its content is semantically invalid."
}
]
}
]
}
Hope this helps.