wu_edward | 2023-03-01 23:55:04 UTC | #1
Hi. Any idea on how to search for an user using employee id under the HR section in user profile? UserProfile.hr.empId.[0].value
Eos_Rios | 2023-03-02 13:14:39 UTC | #2
POST /api/v2/users/search
{ "query": [ { "value": "Your-Id", "fields": [ "hr.employeeId" ], "type": "EXACT" } ] }
That'll only bring back the base user, so if you want any of the other user info, including the hr info, you'll have to use the expand option to include it in the result set;
{ "query": [ { "value": "00073733", "fields": [ "hr.employeeId" ], "type": "EXACT" } ], "expand": [ "employerInfo" ] }
system | 2023-04-02 13:15:36 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 18678