GET api/users?xrmContactId={xrmContactId}

Get user details by XrmContactId - used if we do not have user Id

Request Information

URI Parameters

NameDescriptionTypeAdditional information
xrmContactId

globally unique identifier

Required

Body Parameters

None.

Response Information

Resource Description

UserRepresentation
NameDescriptionTypeAdditional 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

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

Sample:
{
  "Id": "2447cced-78d3-45dc-89fa-73d69a4fa2be",
  "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": "06cfadc8-e5e7-4320-92af-c2c31ac13d70",
  "StatusValue": 9,
  "StatusLabel": "sample string 10",
  "JobTitle": "sample string 11",
  "JobRole": "4c94c354-8013-4c50-9de5-a91f4d8a68dd",
  "InvitationCode": "ff71c036-0ffd-40ba-ba25-1c1029de9d2e",
  "XrmContactId": "9019f2df-1466-45e9-941f-670fa746c182",
  "_links": [
    {
      "Rel": "self",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be",
      "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/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles",
      "Title": null,
      "IsTemplated": false
    },
    {
      "Rel": "subjects",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects",
      "Title": null,
      "IsTemplated": false
    }
  ],
  "_embedded": null
}

text/json

Sample:
{
  "Id": "2447cced-78d3-45dc-89fa-73d69a4fa2be",
  "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": "06cfadc8-e5e7-4320-92af-c2c31ac13d70",
  "StatusValue": 9,
  "StatusLabel": "sample string 10",
  "JobTitle": "sample string 11",
  "JobRole": "4c94c354-8013-4c50-9de5-a91f4d8a68dd",
  "InvitationCode": "ff71c036-0ffd-40ba-ba25-1c1029de9d2e",
  "XrmContactId": "9019f2df-1466-45e9-941f-670fa746c182",
  "_links": [
    {
      "Rel": "self",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be",
      "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/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles",
      "Title": null,
      "IsTemplated": false
    },
    {
      "Rel": "subjects",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects",
      "Title": null,
      "IsTemplated": false
    },
    {
      "Rel": "roles",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles",
      "Title": null,
      "IsTemplated": false
    },
    {
      "Rel": "subjects",
      "Href": "~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects",
      "Title": null,
      "IsTemplated": false
    }
  ],
  "_embedded": null
}

application/xml

Sample:
<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/2447cced-78d3-45dc-89fa-73d69a4fa2be</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/2447cced-78d3-45dc-89fa-73d69a4fa2be</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/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects</Href>
      <Rel>subjects</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects</Href>
      <Rel>subjects</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/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>2447cced-78d3-45dc-89fa-73d69a4fa2be</Id>
  <IdSource>3</IdSource>
  <InvitationCode>ff71c036-0ffd-40ba-ba25-1c1029de9d2e</InvitationCode>
  <JobRole>4c94c354-8013-4c50-9de5-a91f4d8a68dd</JobRole>
  <JobTitle>sample string 11</JobTitle>
  <LastName>sample string 5</LastName>
  <LocalLogin>sample string 2</LocalLogin>
  <OrgId>06cfadc8-e5e7-4320-92af-c2c31ac13d70</OrgId>
  <OrgMemberNumber>sample string 8</OrgMemberNumber>
  <StatusLabel>sample string 10</StatusLabel>
  <StatusValue>9</StatusValue>
  <Telephone>sample string 7</Telephone>
  <XrmContactId>9019f2df-1466-45e9-941f-670fa746c182</XrmContactId>
</UserRepresentation>

text/xml

Sample:
<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/2447cced-78d3-45dc-89fa-73d69a4fa2be</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/2447cced-78d3-45dc-89fa-73d69a4fa2be</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/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects</Href>
      <Rel>subjects</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects</Href>
      <Rel>subjects</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects</Href>
      <Rel>subjects</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles</Href>
      <Rel>roles</Rel>
      <Title i:nil="true" />
    </Link>
    <Link>
      <Href>~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/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>2447cced-78d3-45dc-89fa-73d69a4fa2be</Id>
  <IdSource>3</IdSource>
  <InvitationCode>ff71c036-0ffd-40ba-ba25-1c1029de9d2e</InvitationCode>
  <JobRole>4c94c354-8013-4c50-9de5-a91f4d8a68dd</JobRole>
  <JobTitle>sample string 11</JobTitle>
  <LastName>sample string 5</LastName>
  <LocalLogin>sample string 2</LocalLogin>
  <OrgId>06cfadc8-e5e7-4320-92af-c2c31ac13d70</OrgId>
  <OrgMemberNumber>sample string 8</OrgMemberNumber>
  <StatusLabel>sample string 10</StatusLabel>
  <StatusValue>9</StatusValue>
  <Telephone>sample string 7</Telephone>
  <XrmContactId>9019f2df-1466-45e9-941f-670fa746c182</XrmContactId>
</UserRepresentation>

application/hal+json

Sample:
{
  "Id": "2447cced-78d3-45dc-89fa-73d69a4fa2be",
  "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": "06cfadc8-e5e7-4320-92af-c2c31ac13d70",
  "StatusValue": 9,
  "StatusLabel": "sample string 10",
  "JobTitle": "sample string 11",
  "JobRole": "4c94c354-8013-4c50-9de5-a91f4d8a68dd",
  "InvitationCode": "ff71c036-0ffd-40ba-ba25-1c1029de9d2e",
  "XrmContactId": "9019f2df-1466-45e9-941f-670fa746c182",
  "_links": {
    "self": {
      "href": "/users/2447cced-78d3-45dc-89fa-73d69a4fa2be"
    },
    "sample string 1": {
      "href": "sample string 2",
      "title": "sample string 3"
    },
    "roles": {
      "href": "/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles"
    },
    "subjects": {
      "href": "/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects"
    }
  }
}

application/hal+xml

Sample:
<resource rel="sample string 13" href="~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be" name="sample string 15">
  <link rel="sample string 1" href="sample string 2" />
  <link rel="roles" href="~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/roles" />
  <link rel="subjects" href="~/users/2447cced-78d3-45dc-89fa-73d69a4fa2be/subjects" />
  <Id>2447cced-78d3-45dc-89fa-73d69a4fa2be</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>06cfadc8-e5e7-4320-92af-c2c31ac13d70</OrgId>
  <StatusValue>9</StatusValue>
  <StatusLabel>sample string 10</StatusLabel>
  <JobTitle>sample string 11</JobTitle>
  <JobRole>4c94c354-8013-4c50-9de5-a91f4d8a68dd</JobRole>
  <InvitationCode>ff71c036-0ffd-40ba-ba25-1c1029de9d2e</InvitationCode>
  <XrmContactId>9019f2df-1466-45e9-941f-670fa746c182</XrmContactId>
</resource>