Get list of accounts in Source through API

Hi Experts,

I’m trying to retrieve the list of accounts from particular source in my Identitynow. When I send this GET request from postman, It is not showing the correct accounts, instead it throws the same account for whatever source I give.

GET REQUEST : https://{tenant}.api.identitynow.com/v3/accounts/?sourceId=2c9180867b0780c7017b0c3656ca4f9a

Please correct if this wrong and suggest me the right way of getting the account through API.

Hi @chandracmmohan27,

Please try the below GET call

https://{tenant}.api.identitynow.com/v3/accounts?filters=sourceId eq “2c9180867b0780c7017b0c3656ca4f9a”

Thanks,
Sushant

Hi @Sushantmrj

Thanks for your reply.

I tried this GET request, But i’m getting “The request was syntactically correct but its content is semantically invalid”

Hi @chandracmmohan27,

Give it a try by changing the quotes from “ to "

https://{tenant}.api.identitynow.com/v3/accounts?filters=sourceId eq "2c9180867b0780c7017b0c3656ca4f9a"

Thanks,
Sushant