Genesys CTI User Forum > Genesys-related Development

Reading person object with DBID in GWS

(1/1)

genesys_kumar:
Hi,

Can anyone please let me know the request type for reading person object using person dbid in GWS.  I tried "api/v2/platform/configuration/persons?person_dbid=23177" and "api/v2/platform/configuration/persons?dbid=23177 and api/v2/platform/configuration/persons?id=23177 - but it gives supervisor agents

any idea please let me know, also if we can get group id with Agent group name - that also helps.

Thanks,
Kumar

hsujdik:
have you tried /api/v2/platform/configuration/persons/23177 
?

genesys_kumar:
I apologize for the delayed response.

Actually, the issue was reading person objects from a group.  I'm able to read it now with below API request

[b]/api/v2/me/groups?type=BusinessUnit&fields=*[/b] - this request returned the list of group object which the user is part of.

Then I took group DBID and sent below request

[b]"/api/v2/groups/" +[color=red] groupID [/color]+ "/users?subresources=*&fields=*&limit=100&offset=0&order=Ascending&roles=ROLE_AGENT&sortBy=lastName,firstName"[/b]

In the response, I received all person objects with "Agent" role.


Thanks,
Kumar

Navigation

[0] Message Index

Go to full version