POST api/users/{id}/disassociation
POST api/users/{id:guid}/disassociation Records in CRM that the given user has successfully been disassociated as a member of any organisation on the website If successful returns 200 OK with the updated user in the body If backend user record exists but is not in a state from which there is a valid "disassociation" transition, then returns conflict with a helpful error message. the backend (so cannot be disassociated) returns 404 Not Found. Other CRM errors give 502 bad gateway, any other errors 500 Server Error
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| id | string |
None. |
Body Parameters
User| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| IdSource | integer |
None. |
|
| Login | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| string |
None. |
||
| Telephone | string |
None. |
|
| OrgMemberNumber | string |
None. |
|
| OrgId | globally unique identifier |
None. |
|
| StatusValue | integer |
None. |
|
| StatusLabel | string |
None. |
|
| JobTitle | string |
None. |
|
| JobRole | globally unique identifier |
None. |
|
| InvitationCode | globally unique identifier |
None. |
|
| XrmContactId | globally unique identifier |
None. |
Request Formats
application/json, text/json
{
"Id": "a1c1e720-0f64-48be-865b-a79329f5fb8e",
"IdSource": 2,
"Login": "sample string 3",
"FirstName": "sample string 4",
"LastName": "sample string 5",
"Email": "sample string 6",
"Telephone": "sample string 7",
"OrgMemberNumber": "sample string 8",
"OrgId": "90d078e9-918e-455a-b502-281174abb7db",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "6d3a4a97-bb77-4a08-a1da-496f25ca05de",
"InvitationCode": "86d84d65-bc10-4b65-b542-53a3435512ae",
"XrmContactId": "57c7d44f-a59d-4a5b-bff8-0cc480b9c058"
}
application/xml, text/xml
<User xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SSAT.Webservices.Domain"> <Email>sample string 6</Email> <FirstName>sample string 4</FirstName> <Id>a1c1e720-0f64-48be-865b-a79329f5fb8e</Id> <IdSource>2</IdSource> <InvitationCode>86d84d65-bc10-4b65-b542-53a3435512ae</InvitationCode> <JobRole>6d3a4a97-bb77-4a08-a1da-496f25ca05de</JobRole> <JobTitle>sample string 11</JobTitle> <LastName>sample string 5</LastName> <Login>sample string 3</Login> <OrgId>90d078e9-918e-455a-b502-281174abb7db</OrgId> <OrgMemberNumber>sample string 8</OrgMemberNumber> <StatusLabel>sample string 10</StatusLabel> <StatusValue>9</StatusValue> <Telephone>sample string 7</Telephone> <XrmContactId>57c7d44f-a59d-4a5b-bff8-0cc480b9c058</XrmContactId> </User>
application/x-www-form-urlencoded
Response Information
Resource Description
UserRepresentation| Name | 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": "7b8e100d-2317-4812-beda-13535e0e9a2f",
"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": "2e66c48a-ea37-479d-af46-bdbca30c85ed",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "6527326f-52fb-4909-ab30-b28d0af0428a",
"InvitationCode": "94044529-d32a-4621-936b-fe4f48b2591c",
"XrmContactId": "9547dd99-fc9d-4082-8cae-3e60f214080f",
"_links": [
{
"Rel": "self",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f",
"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/7b8e100d-2317-4812-beda-13535e0e9a2f/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects",
"Title": null,
"IsTemplated": false
}
],
"_embedded": null
}
text/json
{
"Id": "7b8e100d-2317-4812-beda-13535e0e9a2f",
"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": "2e66c48a-ea37-479d-af46-bdbca30c85ed",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "6527326f-52fb-4909-ab30-b28d0af0428a",
"InvitationCode": "94044529-d32a-4621-936b-fe4f48b2591c",
"XrmContactId": "9547dd99-fc9d-4082-8cae-3e60f214080f",
"_links": [
{
"Rel": "self",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f",
"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/7b8e100d-2317-4812-beda-13535e0e9a2f/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects",
"Title": null,
"IsTemplated": false
},
{
"Rel": "roles",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/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/7b8e100d-2317-4812-beda-13535e0e9a2f</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/7b8e100d-2317-4812-beda-13535e0e9a2f</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/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/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>7b8e100d-2317-4812-beda-13535e0e9a2f</Id>
<IdSource>3</IdSource>
<InvitationCode>94044529-d32a-4621-936b-fe4f48b2591c</InvitationCode>
<JobRole>6527326f-52fb-4909-ab30-b28d0af0428a</JobRole>
<JobTitle>sample string 11</JobTitle>
<LastName>sample string 5</LastName>
<LocalLogin>sample string 2</LocalLogin>
<OrgId>2e66c48a-ea37-479d-af46-bdbca30c85ed</OrgId>
<OrgMemberNumber>sample string 8</OrgMemberNumber>
<StatusLabel>sample string 10</StatusLabel>
<StatusValue>9</StatusValue>
<Telephone>sample string 7</Telephone>
<XrmContactId>9547dd99-fc9d-4082-8cae-3e60f214080f</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/7b8e100d-2317-4812-beda-13535e0e9a2f</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/7b8e100d-2317-4812-beda-13535e0e9a2f</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/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/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>7b8e100d-2317-4812-beda-13535e0e9a2f</Id>
<IdSource>3</IdSource>
<InvitationCode>94044529-d32a-4621-936b-fe4f48b2591c</InvitationCode>
<JobRole>6527326f-52fb-4909-ab30-b28d0af0428a</JobRole>
<JobTitle>sample string 11</JobTitle>
<LastName>sample string 5</LastName>
<LocalLogin>sample string 2</LocalLogin>
<OrgId>2e66c48a-ea37-479d-af46-bdbca30c85ed</OrgId>
<OrgMemberNumber>sample string 8</OrgMemberNumber>
<StatusLabel>sample string 10</StatusLabel>
<StatusValue>9</StatusValue>
<Telephone>sample string 7</Telephone>
<XrmContactId>9547dd99-fc9d-4082-8cae-3e60f214080f</XrmContactId>
</UserRepresentation>
application/hal+json
{
"Id": "7b8e100d-2317-4812-beda-13535e0e9a2f",
"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": "2e66c48a-ea37-479d-af46-bdbca30c85ed",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "6527326f-52fb-4909-ab30-b28d0af0428a",
"InvitationCode": "94044529-d32a-4621-936b-fe4f48b2591c",
"XrmContactId": "9547dd99-fc9d-4082-8cae-3e60f214080f",
"_links": {
"self": {
"href": "/users/7b8e100d-2317-4812-beda-13535e0e9a2f"
},
"sample string 1": {
"href": "sample string 2",
"title": "sample string 3"
},
"roles": {
"href": "/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles"
},
"subjects": {
"href": "/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects"
}
}
}
application/hal+xml
<resource rel="sample string 13" href="~/users/7b8e100d-2317-4812-beda-13535e0e9a2f" name="sample string 15"> <link rel="sample string 1" href="sample string 2" /> <link rel="roles" href="~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/roles" /> <link rel="subjects" href="~/users/7b8e100d-2317-4812-beda-13535e0e9a2f/subjects" /> <Id>7b8e100d-2317-4812-beda-13535e0e9a2f</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>2e66c48a-ea37-479d-af46-bdbca30c85ed</OrgId> <StatusValue>9</StatusValue> <StatusLabel>sample string 10</StatusLabel> <JobTitle>sample string 11</JobTitle> <JobRole>6527326f-52fb-4909-ab30-b28d0af0428a</JobRole> <InvitationCode>94044529-d32a-4621-936b-fe4f48b2591c</InvitationCode> <XrmContactId>9547dd99-fc9d-4082-8cae-3e60f214080f</XrmContactId> </resource>