Тема: Fetch list of disabled users
Hi,
I'm trying to fetch a list of disabled users through the API (Users belonging to a disabled account), but I always receive an empty list.
Here is the request:
svc=core/search_items¶ms={
"spec": {
"itemsType": "user",
"propName": "sys_account_disabled",
"propValueMask": "1",
"sortType": "sys_account_disabled"
},
"force": 1,
"flags": 1,
"from": 0,
"to": 0
}
Whether I send propValueMask:"0" or "1", I always get no items back:
{
"searchSpec": {
"itemsType": "user",
"propName": "sys_account_disabled",
"propValueMask": "1",
"sortType": "sys_account_disabled",
"propType": "",
"or_logic": "0"
},
"dataFlags": 1,
"totalItemsCount": 0,
"indexFrom": 0,
"indexTo": 0,
"items": []
}
When calling the following request I do get a list of users (Hence there's no permissions issue with fetching users):
svc=core/search_items¶ms={
"spec": {
"itemsType": "user",
"propName": "sys_name",
"propValueMask": "*",
"sortType": "sys_name"
},
"force": 1,
"flags": 1,
"from": 0,
"to": 0
}
Any thoughts on what I'm doing wrong?