Search Query help

We need a query that fetches all the accounts/identities not part of a source (For example let say source Active Directory). Kindly some one help on this.

you can use below query:

NOT @accounts(source.name:“Active Directory”)

Hi @shaffusailpoint , I would be beneficial to also have a read on the documentation Building a Search Query - SailPoint Identity Services