View Categories

User Retrieve API Exception

< 1 min read

Hi Team,

This is to let you know that there is an exception in all user retrieve APIs that, if you retrieve users in the account then in response, you will not get any custom user fields which is of dropdown types. 

To get all those details you need to use User advanced search API. Below is the curl you can use:- 

In the below case Role in LS is a custom dropdown user field


–header ‘Content-Type: application/json’
–data ‘{
    “Columns”: {
        “Include_CSV”: “UserID,FirstName,LastName,Role_in_LS”
    },
    “GroupConditions”: [
        {
            “Condition”: [
                {
                    “LookupName”: “AssociatedPhoneNumbers”,
                    “Operator”: “lik”,
                    “LookupValue”: “23”,
                    “ConditionOperator”: “OR”
                },
                {
                    “LookupName”: “FirstName”,
                    “Operator”: “lik”,
                    “LookupValue”: “Bo”,
                    “ConditionOperator”: null
                }
            ],
            “GroupOperator”: null
        }
    ],
    “GroupOperator”: null,
    “Sorting”: [
        {
            “ColumnName”: “FirstName”,
            “Direction”: 0
        }
    ],
    “Paging”: {
        “PageIndex”: 1,
        “PageSize”: 5
    }
}’


Response are as follows where Role in LS value is coming up.


Thanks,
Akash
      
Scroll to Top