Get Users API is bringing locations data with all values as NULL

Hi

I am using get users using following code

page_size=500
page_number=1
total_pages=1
state="any"
expand=["authorization","skills","groups","locations","team"]

api_result =api_instance.get_users(page_size=page_size, page_number=page_number, state=state, expand=expand)

above gives result in which entity has locations as array element, and it also has object in it but all properties of that object have None value. Below is one sample result i am getting.

'locations': [{'coordinates': {},
'floorplan_id': None,
'id': None,
'location_definition': {'address': None,
'address_stored': None,
'address_verification_details': None,
'address_verified': None,
'contact_user': None,
'emergency_number': None,
'floorplan_image': None,
'id': 'c8363688-d89d-41d6-b500-8846f2d6ebdb',
'images': None,
'name': None,
'notes': None,
'path': None,
'profile_image': None,
'self_uri': '/api/v2/locations/c8363688-d89d-41d6-b500-8846f2d6ebdb',
'state': None,
'version': None},
'notes': ''}],

Jignesh

Regarding similar issue our expand parameter is "team,locations,groups,employerinfo,skills,authorization" and page size is 500.
Below is the Genesys care response:

Another thing I noticed is that your query had 6 fields in expand "team,locations,groups,employerinfo,skills,authorization". I don't know if you noticed, but 2 of them weren't returned in the .json files you sent.
This too is expected behavior, and will be documented in the near future. To get all the 6 expand fields, you'd need to reduce the pagesize to around 400, not sure as the tests with this haven't been finalized.

So try with 400 page size instead of 500.
After Genesys suggestion we preferred going with page size 350.

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