Author Topic: Reading person object with DBID in GWS  (Read 1428 times)

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Reading person object with DBID in GWS
« on: February 04, 2022, 04:07:10 AM »
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

Online hsujdik

  • Sr. Member
  • ****
  • Posts: 483
  • Karma: 17
Re: Reading person object with DBID in GWS
« Reply #1 on: February 04, 2022, 09:59:42 PM »
have you tried /api/v2/platform/configuration/persons/23177 
?

Offline genesys_kumar

  • Newbie
  • *
  • Posts: 24
  • Karma: 0
Re: Reading person object with DBID in GWS
« Reply #2 on: February 25, 2022, 09:59:55 PM »
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

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

Then I took group DBID and sent below request

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

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


Thanks,
Kumar