List Accounts Based on SailPoint Username

Hi,

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.

Thanks,
Gaurav

Hi @gaurav_jain,

per my understanding, right now only the identityId is available in the account object right now.

When you say that identityId works fine, I hope you are making an API cal like this,

/accounts?filters=identityId eq β€œ094348dnnx333”

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.

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.