GET api/users/{id}
Requires authentication. Get an individual user by GUID. If successful returns "200 OK", with the body of the response containing a representation of the user. If not found, returns "404 Not Found" If CRM operations fail for an un-recoverable reason, the service returns "502 Bad Gateway" Any other server-side errors return "500 Internal Server Error"
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
id | globally unique identifier |
Required |
Body Parameters
None.
Response Information
Resource Description
UserRepresentation
UserRepresentationName | Description | Type | Additional information |
---|---|---|---|
Id |
Unique identifier - same as in CRM |
globally unique identifier |
None. |
LocalLogin |
Login for this system |
string |
None. |
IdSource |
The source of identity for this user. Defined values are: 0 = reserved for test suites; 1 = SSAT website |
integer |
None. |
FirstName |
First name |
string |
None. |
LastName |
last name |
string |
None. |
Email address |
string |
None. |
|
Telephone |
Main telephone number |
string |
None. |
OrgMemberNumber |
Organisation membership number |
string |
None. |
OrgId |
Organisation ID |
globally unique identifier |
None. |
StatusValue |
User status |
integer |
None. |
StatusLabel |
User status label |
string |
None. |
JobTitle |
Free text job title |
string |
None. |
JobRole |
Reference to job role from pre-set list |
globally unique identifier |
None. |
InvitationCode |
Most recent invitation code generated by CRM |
globally unique identifier |
None. |
XrmContactId |
Unique XRM Id for the associated contact (NB N:1 User:Contact) |
globally unique identifier |
None. |
Links | Collection of Link |
None. |
Response Formats
application/json
{ "Id": "a10f7b55-9f50-4a55-b368-f7a7a55fd512", "LocalLogin": "sample string 2", "IdSource": 3, "FirstName": "sample string 4", "LastName": "sample string 5", "Email": "sample string 6", "Telephone": "sample string 7", "OrgMemberNumber": "sample string 8", "OrgId": "69d258c7-8c4c-4c9e-aad2-484ff8e943ec", "StatusValue": 9, "StatusLabel": "sample string 10", "JobTitle": "sample string 11", "JobRole": "b7c903e3-2e29-4644-bcef-d7b45fadfbf2", "InvitationCode": "1514151f-a2c2-4562-97d2-9b18760da1c8", "XrmContactId": "4f69f565-9939-4767-854c-44660bf1f66f", "_links": [ { "Rel": "self", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512", "Title": null, "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "roles", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles", "Title": null, "IsTemplated": false }, { "Rel": "subjects", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects", "Title": null, "IsTemplated": false } ], "_embedded": null }
text/json
{ "Id": "a10f7b55-9f50-4a55-b368-f7a7a55fd512", "LocalLogin": "sample string 2", "IdSource": 3, "FirstName": "sample string 4", "LastName": "sample string 5", "Email": "sample string 6", "Telephone": "sample string 7", "OrgMemberNumber": "sample string 8", "OrgId": "69d258c7-8c4c-4c9e-aad2-484ff8e943ec", "StatusValue": 9, "StatusLabel": "sample string 10", "JobTitle": "sample string 11", "JobRole": "b7c903e3-2e29-4644-bcef-d7b45fadfbf2", "InvitationCode": "1514151f-a2c2-4562-97d2-9b18760da1c8", "XrmContactId": "4f69f565-9939-4767-854c-44660bf1f66f", "_links": [ { "Rel": "self", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512", "Title": null, "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "sample string 1", "Href": "sample string 2", "Title": "sample string 3", "IsTemplated": false }, { "Rel": "roles", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles", "Title": null, "IsTemplated": false }, { "Rel": "subjects", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects", "Title": null, "IsTemplated": false }, { "Rel": "roles", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles", "Title": null, "IsTemplated": false }, { "Rel": "subjects", "Href": "~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects", "Title": null, "IsTemplated": false } ], "_embedded": null }
application/xml
<UserRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.WebServices.WebApp.Representations.Version1"> <Href xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512</Href> <LinkName xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 15</LinkName> <Links xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal"> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512</Href> <Rel>self</Rel> <Title i:nil="true" /> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> </Links> <Rel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 13</Rel> <Email>sample string 6</Email> <FirstName>sample string 4</FirstName> <Id>a10f7b55-9f50-4a55-b368-f7a7a55fd512</Id> <IdSource>3</IdSource> <InvitationCode>1514151f-a2c2-4562-97d2-9b18760da1c8</InvitationCode> <JobRole>b7c903e3-2e29-4644-bcef-d7b45fadfbf2</JobRole> <JobTitle>sample string 11</JobTitle> <LastName>sample string 5</LastName> <LocalLogin>sample string 2</LocalLogin> <OrgId>69d258c7-8c4c-4c9e-aad2-484ff8e943ec</OrgId> <OrgMemberNumber>sample string 8</OrgMemberNumber> <StatusLabel>sample string 10</StatusLabel> <StatusValue>9</StatusValue> <Telephone>sample string 7</Telephone> <XrmContactId>4f69f565-9939-4767-854c-44660bf1f66f</XrmContactId> </UserRepresentation>
text/xml
<UserRepresentation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.WebServices.WebApp.Representations.Version1"> <Href xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512</Href> <LinkName xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 15</LinkName> <Links xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal"> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512</Href> <Rel>self</Rel> <Title i:nil="true" /> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>sample string 2</Href> <Rel>sample string 1</Rel> <Title>sample string 3</Title> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles</Href> <Rel>roles</Rel> <Title i:nil="true" /> </Link> <Link> <Href>~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects</Href> <Rel>subjects</Rel> <Title i:nil="true" /> </Link> </Links> <Rel xmlns="http://schemas.datacontract.org/2004/07/WebApi.Hal">sample string 13</Rel> <Email>sample string 6</Email> <FirstName>sample string 4</FirstName> <Id>a10f7b55-9f50-4a55-b368-f7a7a55fd512</Id> <IdSource>3</IdSource> <InvitationCode>1514151f-a2c2-4562-97d2-9b18760da1c8</InvitationCode> <JobRole>b7c903e3-2e29-4644-bcef-d7b45fadfbf2</JobRole> <JobTitle>sample string 11</JobTitle> <LastName>sample string 5</LastName> <LocalLogin>sample string 2</LocalLogin> <OrgId>69d258c7-8c4c-4c9e-aad2-484ff8e943ec</OrgId> <OrgMemberNumber>sample string 8</OrgMemberNumber> <StatusLabel>sample string 10</StatusLabel> <StatusValue>9</StatusValue> <Telephone>sample string 7</Telephone> <XrmContactId>4f69f565-9939-4767-854c-44660bf1f66f</XrmContactId> </UserRepresentation>
application/hal+json
{ "Id": "a10f7b55-9f50-4a55-b368-f7a7a55fd512", "LocalLogin": "sample string 2", "IdSource": 3, "FirstName": "sample string 4", "LastName": "sample string 5", "Email": "sample string 6", "Telephone": "sample string 7", "OrgMemberNumber": "sample string 8", "OrgId": "69d258c7-8c4c-4c9e-aad2-484ff8e943ec", "StatusValue": 9, "StatusLabel": "sample string 10", "JobTitle": "sample string 11", "JobRole": "b7c903e3-2e29-4644-bcef-d7b45fadfbf2", "InvitationCode": "1514151f-a2c2-4562-97d2-9b18760da1c8", "XrmContactId": "4f69f565-9939-4767-854c-44660bf1f66f", "_links": { "self": { "href": "/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512" }, "sample string 1": { "href": "sample string 2", "title": "sample string 3" }, "roles": { "href": "/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles" }, "subjects": { "href": "/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects" } } }
application/hal+xml
<resource rel="sample string 13" href="~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512" name="sample string 15"> <link rel="sample string 1" href="sample string 2" /> <link rel="roles" href="~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/roles" /> <link rel="subjects" href="~/users/a10f7b55-9f50-4a55-b368-f7a7a55fd512/subjects" /> <Id>a10f7b55-9f50-4a55-b368-f7a7a55fd512</Id> <LocalLogin>sample string 2</LocalLogin> <IdSource>3</IdSource> <FirstName>sample string 4</FirstName> <LastName>sample string 5</LastName> <Email>sample string 6</Email> <Telephone>sample string 7</Telephone> <OrgMemberNumber>sample string 8</OrgMemberNumber> <OrgId>69d258c7-8c4c-4c9e-aad2-484ff8e943ec</OrgId> <StatusValue>9</StatusValue> <StatusLabel>sample string 10</StatusLabel> <JobTitle>sample string 11</JobTitle> <JobRole>b7c903e3-2e29-4644-bcef-d7b45fadfbf2</JobRole> <InvitationCode>1514151f-a2c2-4562-97d2-9b18760da1c8</InvitationCode> <XrmContactId>4f69f565-9939-4767-854c-44660bf1f66f</XrmContactId> </resource>