Appearance
getTeamUsersForTeamAdmin ​
Returns a list of Users in a given Team where the calling User is assigned to as a Team Admin of that Team AND has mi_connection.is_team_admin=Y. Is specific to a given MY wall/team/user.
Request ​
http
GET rest/user/company/{companyId}/teamadmin/teams/{teamId}/usersHeaders ​
| Header | Required | Description |
|---|---|---|
x-nextinteract-authtoken | Yes | Auth token returned from loginUser |
Parameters ​
Path Params: companyId - (integer, required) company id of the company for which users are being requested. teamId - (integer, required) team id of team for which users are being requested.
Response ​
200 OK ​
json
{
"uTitleId": 1,
"uTitle": "Associate Professor",
"uGenderCode": "M",
"uGenderName": "Male",
"uEmail": "aaron.mcmullen@hypermedia.com.au",
"uFirstName": "UPDATED FIRST NAME",
"uLastName": "UPDATED LAST NAME",
"uCountryCode": "AU",
"uCountryName": "AUSTRALIA",
"uPrimaryMobile": "123",
"uDateOfBirth": "2018-04-30",
"uInterests": "interests",
"uDietaryRequirements": "dietary requirements",
"uPhoto": null,
"uEnableLocation": false,
"uEnableNotifications": false,
"uAllowAllEmails": true,
"uAllowNewsletterEmail": true,
"uProfessionId": 1,
"uProfessionName": "Doctor",
"uSpecialtyId": 1,
"uSpecialtyName": "Addiction Medicine",
"uOtherTitle": null,
"uOtherProfession": null,
"uOtherSpecialty": null,
"uFacebookId": "facebook id",
"uTwitterId": "twitter id",
"uLinkedinId": "linkedin id",
"uLinkedinUrl": "linkedin url",
"uTimezoneId": null,
"uConditionId": 1,
"uConditionName": "Systemic Lupus Erythematosus (SLE)",
""uTreatmentNotes" : "See my local quack",
"uInteractTsAndCs": "Y",
"uInteractTsAndCsDate": null,
"uSAMTrackingConsent": "Y",
"uSAMTrackingConsentDate": null,
"uiCloudConsent": "N",
"uiCloudConsentDate": null,
"uGoogleConsent": "N",
"uGoogleConsentDate": null,
"uFacebookConsent": "N",
"uFacebookConsentDate": null,
"addresses": [
{
"uuid": "1417762b-d628-4a7a-acf0-9cf9193db853",
"type": "Personal",
"typeCode": "P",
"name": "Updated Name",
"street": "updated street",
"city": "updated city",
"suburb": "updated suburb",
"stateCode": "NZ-AUK",
"state": "Auckland",
"postcode": "updated postcode",
"countryCode": "NZ",
"country": "NEW ZEALAND",
"email": "updated@email.com",
"phone": "updated phone",
"fax": "updated fax",
"mobile": "updated mobile",
"department": "updated department",
"division": "updated division",
"jobTitle": "updated job title"
},
{
"uuid": "c438503e-d95c-4a9f-985b-e9ecfaf52cb1",
"type": "Work",
"typeCode": "W",
"name": "Work Address 1 Name",
"street": "Work Address 1 Street",
"city": "Address 1 City",
"suburb": "Address 1 Suburb",
"stateCode": "AU-NSW",
"state": "New South Wales",
"postcode": "2000",
"countryCode": "AU",
"country": "AUSTRALIA",
"email": "test@test.com",
"phone": "phone",
"fax": "fax",
"mobile": "mobile",
"department": "department",
"division": "division",
"jobTitle": "jobTitle"
}
],
"uCreationDate": "2018-04-25",
"uIdentifiers": [
{
"uIdentifierId": 1234,
"uIdentifierValue": "XYZ0123456789",
"identifierName": "AHPRA",
"identifierDesc": "Australian Health Practitioner Regulation Agency"
}
],
"uId": 8
}Errors ​
| Exception | Description |
|---|---|
WSInvalidParameterException | See Error Definitions |
WSInvalidAuthTokenException | See Error Definitions |
WSCacheServiceException | See Error Definitions |
WSUserServiceException | See Error Definitions |