When we tried testing it by requesting an entitlement, the account was provisioned to the user. However, when we check the account, the Account Name was set to “–”. What could be causing this issue and how do we resolve it? Aggregating the source after account creation does not solve it.
I tried changing the username to userName in the response mapping, but still getting the same result. Should I also change the account schema from username to userName?
I did this and the account name is still “–”. However, when I checked via the API endpoint, the account was created successfully. I just have to perform an aggregation for the account name to reflect in ISC
Have you added a get object operation for single account aggregation ? after each operation, the webservice connector get object to aggregate the created or modified single account details.
Hello Jasmine. Since the Account Name appears after aggregation, your email schema attribute and Account Aggregation mapping are working. So this does not look like a username / userName issue, and I would not rename the schema attribute for this.
The remaining gap is only right after Create Account, before an aggregation refreshes the account. I would work it in this order:
Check the Create Account response first. If it already contains email, make sure the email schema attribute is mapped to the correct Attribute Path in the Create Account Response Mapping. That should let ISC populate email from the Create response without a separate Get Object call.
If the Create response does not return email, configure or check a Get Object operation. Web Services supports calling Get Object during Create provisioning to read the newly created account back without waiting for an aggregation. SailPoint also provides the skipGetObjectInCreate setting to skip that Get Object call when it is present during Create provisioning.
For Get Object, verify that its response returns email, that email is mapped correctly in its Response Mapping, and that it retrieves the new account by its Account ID, commonly $getObject.nativeIdentity$.
I think the original issue may have been the value for userName in the response not matching what you configured in the mapping and schema. On create, this may have caused it to not retrieve the value back when it did the get object. From here, since it could not find the value, it set to —. When you updated the schema, it found the value and was able to set it when you aggregated again.
I was also going to suggest checking the “skipGetObjectInCreate” flag as a possibility for this. It sounded like the account was not being read back and the nativeIdentity value (account name) not getting set. When you do the aggregation, it is reading back in and setting correctly. However, this would only have been if this was still happening right after a create, before a full aggregation.
Hello Jasmine. Thanks for sharing the screenshots. I think I see where the issue might be.
In your first screenshot, the operation is named Single Account Aggregation, but the Operation Type is still set to Account Aggregation. I would change that to Get Object, since these are two different operation types in Web Services. You can keep the GET method if that is what your API expects.
I would also check two things:
Response Mapping: your screenshot shows userName → username. If your schema still uses username as the Account ID, keep username on the left and use the actual API response field on the right. For the Account Name, email → email should work if the response contains that field.
Get Object during Create: check that skipGetObjectInCreate is not set to true, since you want ISC to read the account back after creation.
I would correct the Operation Type first and test again.
If you still get an error, could you share the exact error message and the JSON returned by the GET endpoint? We can then check whether $getObject.nativeIdentity$ is passing the value your API expects.
You are seeing - in the account name because the provisioning request is currently using the nativeIdentity value instead of the username attribute. Once the account is aggregated, SailPoint will retrieve the account details from the target system and you should start seeing the correct username.
Alternatively, you can configure a Get Object operation to perform a single account lookup immediately after provisioning. The operation type should be set to GetObject. and not a Account Aggregation for Single user aggregation.
I have already configured the Get Object operation. However, a new issue has appeared: the account name of a newly created account is being mapped to a different user’s account name. It seems that the $getObject.nativeIdentity$ value being passed during the Get Object call is incorrect, causing SailPoint to retrieve and associate the wrong account.
Go to VS Code and right click on your source and select the option Reset Entitlements and Reset Accounts. later perform aggregation your problem will solved.
I tried all the steps you recommended above. After that, I tried to request for account creation again, however, it is not calling my Create Account operation now.
Hello Jasmine. Since Create Account stopped triggering after the reset, I would start there.
Resetting source entitlements also removes the associated access profiles. I would suggest running a full, unoptimized account aggregation and an entitlement aggregation, then recreating the access profile if it was removed. After that, could you check whether your test identity already has an account on this source? If it does, SailPoint would normally add the entitlement to that account instead of triggering Create Account. You could also test with an identity that has no existing account and compare the Account Activity.
For the incorrect Account Name, I noticed your earlier screenshot showed the operation type as Account Aggregation, even though it was named Single Account Aggregation. Since you mentioned configuring Get Object afterward, could you confirm the saved operation type is now Get Object? $getObject.nativeIdentity$ only carries the Account ID during a Get Object operation, so if the type is different I would not expect it to scope to one account, which would fit two identities showing the same name.
I would also check two things:
Your schema has username as the Account ID, but the Response Mapping shows userName. The Schema Attribute should match username, while the Attribute Path should match the actual API response field. I would also confirm email, since that is your Account Name attribute.
Try /suite/webapi/user?user=<username> in Postman and confirm it returns only that user’s account. If it returns another user or several records, I would fix the API lookup first, and only use an After Operation Rule to filter if the endpoint cannot return a single user.
If the names are still incorrect, could you share the Get Object JSON response and the latest Account Activity, with sensitive details masked? We can then check whether SailPoint is looking up the correct account or mapping the wrong response.
“Your schema has username as the Account ID, but the Response Mapping shows userName. The Schema Attribute should match username, while the Attribute Path should match the actual API response field. I would also confirm email, since that is your Account Name attribute.”
Here is my updated account schema. The account ID is now set to userName. In the Response Mapping of the Get Object, the Schema Attribute is set to userName and the Attribute Path is set to usernamesince that is the API response.
“Try /suite/webapi/user?user=<username> in Postman and confirm it returns only that user’s account. If it returns another user or several records, I would fix the API lookup first, and only use an After Operation Rule to filter if the endpoint cannot return a single user.”
I can confirm that this only returns the user’s account. Please see the Get Object response below:
This is what it looks like in the Accounts tab. Noticed that the account ID is mapped from a different user (refer to Add Entitlement Failed screenshot). I tried also testing with other users but the result is also the same.