# SCIM v2 - Cannot filter Accounts based on if "active" equals true/false

**URL:** <https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609>\
**Category:** IIQ Discussion and Questions\
**Tags:** identityiq, apis\
**Created:** [September 14, 2023, 11:32am UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609 "2023-09-14T11:32:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![antdru94](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@antdru94](https://developer.sailpoint.com/discuss/u/antdru94)\
**Post date:** [September 14, 2023, 11:32am UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609/1 "2023-09-14T11:32:25Z")

</div>

Hi, I cannot filter Accounts when making API calls in Postman/Javascript, I get a 500 status code. This is how my GET request looks like: {{baseUrl}}/scim/v2/Accounts?filter=active eq true.

If I only use {{baseUrl}}/scim/v2/Accounts all the accounts are returned with 200 status code, but I cannot filter them. I have tried following the API guide: [get-accounts | SailPoint Developer Community](https://developer.sailpoint.com/iiq/api/get-accounts)

---

<div class="post-metadata">

**Author:** ![ismaelmoreno1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ismaelmoreno1/32/2756_2.png) [@ismaelmoreno1](https://developer.sailpoint.com/discuss/u/ismaelmoreno1)\
**Post date:** [September 17, 2023, 6:27pm UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609/2 "2023-09-17T18:27:33Z")

</div>

Hi @antdru94

Could you try with the following filter?

**filter=disabledAccount eq true**

---

<div class="post-metadata">

**Author:** ![antdru94](https://avatars.discourse-cdn.com/v4/letter/a/3da27b/32.png) [@antdru94](https://developer.sailpoint.com/discuss/u/antdru94)\
**Post date:** [September 17, 2023, 6:42pm UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609/3 "2023-09-17T18:42:50Z")

</div>

Hi, that does not work, no arritbute found, invalidFillter. This is the attribute I want to filter, but it does not work:  
 ![image](https://global.discourse-cdn.com/sailpoint/original/2X/a/ad9832e61e078c24dfedbfa25312f2712671021a.png)

---

<div class="post-metadata">

**Author:** ![ismaelmoreno1](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/ismaelmoreno1/32/2756_2.png) [@ismaelmoreno1](https://developer.sailpoint.com/discuss/u/ismaelmoreno1)\
**Post date:** [September 23, 2023, 6:47pm UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609/4 "2023-09-23T18:47:27Z")

</div>

hi @antdru94  
According IdentityIQ documentation only the following attributes are sercheable

The following fields are filterable or searchable: **displayName, lastRefresh,  
nativeIdentity, uuid, lastTargetAgg, identity, and application**. Search on application schema specific attributes is not supported

You can review it in the following documentation

([7.3 IdentityIQ SCIM API Reference.pdf - Compass](https://community.sailpoint.com/t5/IdentityIQ-Product-Guides/7-3-IdentityIQ-SCIM-API-Reference-pdf/ta-p/80756))

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [November 22, 2023, 6:48pm UTC](https://developer.sailpoint.com/discuss/t/scim-v2-cannot-filter-accounts-based-on-if-active-equals-true-false/17609/5 "2023-11-22T18:48:10Z")

</div>

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