Legacy Dev Forum Posts

 View Only

Sign Up

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

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

    Posted 06-05-2025 18:33

    Umesh_Jain | 2025-02-28 09:59:12 UTC | #1

    Hi

    I am using get users using following code

    pagesize=500 pagenumber=1 totalpages=1 state="any" expand=["authorization","skills","groups","locations","team"] apiresult =apiinstance.getusers(pagesize=pagesize, pagenumber=pagenumber, 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': {}, 'floorplanid': None, 'id': None, 'locationdefinition': {'address': None, 'addressstored': None, 'addressverificationdetails': None, 'addressverified': None, 'contactuser': None, 'emergencynumber': None, 'floorplanimage': None, 'id': 'c8363688-d89d-41d6-b500-8846f2d6ebdb', 'images': None, 'name': None, 'notes': None, 'path': None, 'profileimage': None, 'self_uri': '/api/v2/locations/c8363688-d89d-41d6-b500-8846f2d6ebdb', 'state': None, 'version': None}, 'notes': ''}],

    Jignesh


    Dileepkaranki | 2025-02-28 16:24:24 UTC | #2

    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.


    system | 2025-03-30 10:26:08 UTC | #3

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


    This post was migrated from the old Developer Forum.

    ref: 31969