Hello,
I recommend the same API endpoint that Elisson mentioned - i.e. POST /api/v2/users/search
Just adding how to filter/search by email address on top of this:
{
"sortOrder": "ASC",
"pageSize": 100,
"pageNumber": 1,
"sortBy": "id",
"query": [
{
"values": [
"active",
"inactive",
"deleted"
],
"fields": [
"state"
],
"type": "EXACT"
},
{
"values": [
"THE_EMAIL_ADDRESS_TO_SEARCH_AGAINST"
],
"operator": "AND",
"type": "EXACT",
"fields": [
"email"
]
}
]
}
Regards,
------------------------------
Jerome Saint-Marc
Senior Development Support Engineer
------------------------------
Original Message:
Sent: 12-15-2025 11:18
From: Connor Maxwell
Subject: Search users using email to check state
Hello, I am trying to use an API to check if a user currently has a profile (by email) and to check which state it is in (including inactive and deleted). I tried using this API but I am getting some strange results.
Get /api/v2/scim/users with the filter "email eq ___" but the email that I put in, which I know is linked to a deleted profile, is not coming up.
I also tried using the filter "active eq false, email eq ___" but it pulled up a random in-active profile
Is there something that I should be doing differently?
Thanks in advance
#DataActions
#PlatformAPI
------------------------------
Connor Maxwell
-
------------------------------