How to get the email of an internal user

Forum for users and developers of Bullhorn's API service.

Moderators: StaffingSupport, s.emmons, BullhornSupport

Post Reply
jkaashoek
User
Posts: 18
Joined: Fri Feb 05, 2016 8:03 pm

How to get the email of an internal user

Post by jkaashoek » Wed Apr 27, 2016 4:38 pm

What is the syntax for getting an internal user's email address? The documentation suggests using the 'externalEmail' field in a CorporateUser query but that return an empty field. The Primary Email field is populated for this user, but not returned. What query to use to get the primary email?

Example:

GET to url : https://rest2.bullhornstaffing.com/rest ... b53aa24192

Returned data:

{
"data" : {
"firstName" : "John",
"lastName" : "Doe",
"username" : "user.name",
"externalEmail" : "",
"address" : {
"address1" : "",
"address2" : "",
"city" : "",
"state" : "",
"zip" : "",
"countryID" : 1,
"countryName" : "United States ",
"countryCode" : "US"
}
}
}

jkaashoek
User
Posts: 18
Joined: Fri Feb 05, 2016 8:03 pm

Re: How to get the email of an internal user

Post by jkaashoek » Wed Apr 27, 2016 4:55 pm

Some experimentation reveals that the fieldname to use is simply 'email'. This is missing from the REST API documentation so that should be updated.

pmularski
Bullhorn Support Staff
Posts: 931
Joined: Wed Dec 31, 1969 8:00 pm

Re: How to get the email of an internal user

Post by pmularski » Fri Apr 29, 2016 4:27 pm

Good Afternoon Jkaashoek,

Thank you for the information. I will pass this along to our documentation team.
Patrick Mularski
Senior Enterprise Support Analyst
B U L L H O R N
Staffing and Recruiting Software, On Target, On Demand
Bullhorn Support Contact Numbers
US: 617-478-9126
UK: 44 800 032 2848
Australia: 61 28 073 5089
International: 617-478-9131

Post Reply