I am trying to use /accounts API to list accounts for a user. It seems to be working fine using identityId but does not seem to be an option to use SailPoint Username as filter. Is there any way to use it with SailPoint Username? The reason being that external system does not have access to identityId and I am trying to avoid making multiple API calls.
Filter only works on the existing attributes returned by the IDN API.
So until they decide to add it as an additional attribute from SailPoint side, I donβt think its will be possible to fetch in a single call.
The only filters available are those listed. If you happen to know the nativeIdentity you can filter on that. I will commonly filter on the source and nativeIdentity like this:
/v3/accounts?filters=sourceId eq "{{source-id}}" and nativeIdentity eq "12345"
If you only need some of the account details, you can also try /v3/search, otherwise you will need to make that extra call to get the correct account.