I have a query working in Json, but my company is moving to python and i am trying to learn on the fly. is payload / query criteria:
"query": [{
"operator": "OR",
"type": "EXACT",
"fields": ["divisionId"],
"value": "xxx"
}]}
{ "pageSize": 300,
"pageNumber": 4,
"query": [{
"operator": "OR",
"type": "EXACT",
"fields": ["divisionId"],
"value": "xxxx"
}]
}
calling this:
api_instance = PureCloudPlatformClientV2.UsersApi()
body = PureCloudPlatformClientV2.UserSearchRequest() # UserSearchRequest | Search request options
try:
# Search users
api_response = api_instance.post_users_search(body)
Any help/example, basically trying to search all users in a division, and get agent id.
thanks in advance