Appearance
getUserDetailsByAdminAPIKey ​
Retrieves a single User's profile including some connection-related info given a valid UserId and API Key
Request ​
http
GET /rest/company/admin/profiles/singleHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-company-api-key | Yes | Admin-specific API key UUID provided to company |
Parameters ​
Possible query parameters : Request must only pass "one" of the parameters below otherwise an error is thrown:
| Parameter | Type | Required | Description |
|---|---|---|---|
userId | Number | No | UserId of a connection's user profile to retrieve. |
email | String[255] | No | Email Address of a connection's user profile to retrieve. |
externalId | String[50] | No | ExternalId of a connection's Contact record relating to the profile to retrieve. More for enabling V1 VEEVA integration. |
Response ​
200 OK ​
json
{
"user": {
"fieldsToNull": [],
"uTitleId": null,
"uTitle": null,
"uGenderCode": null,
"uGenderName": null,
"uEmail": "aaron.mcmullen@hypermedia.com.au",
"uFirstName": "Joe",
"uLastName": "Bloggs",
"uCountryCode": null,
"uCountryName": null,
"uPrimaryMobile": null,
"uDateOfBirth": null,
"uInterests": null,
"uDietaryRequirements": null,
"uPhoto": null,
"uEnableLocation": "N",
"uEnableNotifications": "N",
"uAllowAllEmails": "Y",
"uAllowNewsletterEmail": "Y",
"uProfessionId": null,
"uProfessionName": null,
"uSpecialtyId": null,
"uSpecialtyName": null,
"uOtherTitle": null,
"uOtherProfession": null,
"uOtherSpecialty": null,
"uFacebookId": null,
"uTwitterId": null,
"uLinkedinId": null,
"uLinkedinUrl": null,
"uTimezoneId": null,
"addresses": [],
"uIdentifiers": [],
"uId": 8
},
"connectionStatus": {
"userId": 8,
"externalId": null,
"inviteStatusCode": "A",
"inviteStatusName": "Accepted",
"dInvited": 1533235880000,
"dExpires": null,
"dAccepted": null,
"dRejected": null,
"dCancelled": null
}
}Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSRecordNotFoundException | See Error Definitions |
WSCompanyApiKeyNotActiveException | See Error Definitions |
WSCompanyNotActiveException | See Error Definitions |
WSUserNotFoundException | See Error Definitions |
WSUserNotActiveException | See Error Definitions |
WSConnectionStatusNotActiveException | See Error Definitions |
WSAdminAPIServiceException | See Error Definitions |
WSIncorrectApiKeyTypeException | See Error Definitions |