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": "8d2598c1-cd52-4d14-b1b5-93358641b920",
"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": "97be5aa8-00df-4e3d-a3bf-9c34acaf6b17",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "9b9e7ec2-f14e-4aad-ade3-dbdf1c5a4fec",
"InvitationCode": "b140e148-0160-432a-bd64-5544720cc6cf",
"XrmContactId": "9d043477-c6d9-426c-a7c1-1e69696c10c6"
}
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>8d2598c1-cd52-4d14-b1b5-93358641b920</Id> <IdSource>2</IdSource> <InvitationCode>b140e148-0160-432a-bd64-5544720cc6cf</InvitationCode> <JobRole>9b9e7ec2-f14e-4aad-ade3-dbdf1c5a4fec</JobRole> <JobTitle>sample string 11</JobTitle> <LastName>sample string 5</LastName> <Login>sample string 3</Login> <OrgId>97be5aa8-00df-4e3d-a3bf-9c34acaf6b17</OrgId> <OrgMemberNumber>sample string 8</OrgMemberNumber> <StatusLabel>sample string 10</StatusLabel> <StatusValue>9</StatusValue> <Telephone>sample string 7</Telephone> <XrmContactId>9d043477-c6d9-426c-a7c1-1e69696c10c6</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": "eb2019d0-b6dd-4429-a2ec-9ec9a82f4978",
"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": "f4f41d30-128c-403b-824c-160e23b9c7ca",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "4364b7f7-890a-4143-834f-2954a7cd8516",
"InvitationCode": "cc1639a1-158e-47d1-8db3-1f6ce7ac8740",
"XrmContactId": "128aa69c-81e4-4864-a13e-c4bea6bd3be5",
"_links": [
{
"Rel": "self",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978",
"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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects",
"Title": null,
"IsTemplated": false
}
],
"_embedded": null
}
text/json
{
"Id": "eb2019d0-b6dd-4429-a2ec-9ec9a82f4978",
"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": "f4f41d30-128c-403b-824c-160e23b9c7ca",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "4364b7f7-890a-4143-834f-2954a7cd8516",
"InvitationCode": "cc1639a1-158e-47d1-8db3-1f6ce7ac8740",
"XrmContactId": "128aa69c-81e4-4864-a13e-c4bea6bd3be5",
"_links": [
{
"Rel": "self",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978",
"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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects",
"Title": null,
"IsTemplated": false
},
{
"Rel": "roles",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles",
"Title": null,
"IsTemplated": false
},
{
"Rel": "subjects",
"Href": "~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/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>eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</Id>
<IdSource>3</IdSource>
<InvitationCode>cc1639a1-158e-47d1-8db3-1f6ce7ac8740</InvitationCode>
<JobRole>4364b7f7-890a-4143-834f-2954a7cd8516</JobRole>
<JobTitle>sample string 11</JobTitle>
<LastName>sample string 5</LastName>
<LocalLogin>sample string 2</LocalLogin>
<OrgId>f4f41d30-128c-403b-824c-160e23b9c7ca</OrgId>
<OrgMemberNumber>sample string 8</OrgMemberNumber>
<StatusLabel>sample string 10</StatusLabel>
<StatusValue>9</StatusValue>
<Telephone>sample string 7</Telephone>
<XrmContactId>128aa69c-81e4-4864-a13e-c4bea6bd3be5</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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</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/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects</Href>
<Rel>subjects</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles</Href>
<Rel>roles</Rel>
<Title i:nil="true" />
</Link>
<Link>
<Href>~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/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>eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</Id>
<IdSource>3</IdSource>
<InvitationCode>cc1639a1-158e-47d1-8db3-1f6ce7ac8740</InvitationCode>
<JobRole>4364b7f7-890a-4143-834f-2954a7cd8516</JobRole>
<JobTitle>sample string 11</JobTitle>
<LastName>sample string 5</LastName>
<LocalLogin>sample string 2</LocalLogin>
<OrgId>f4f41d30-128c-403b-824c-160e23b9c7ca</OrgId>
<OrgMemberNumber>sample string 8</OrgMemberNumber>
<StatusLabel>sample string 10</StatusLabel>
<StatusValue>9</StatusValue>
<Telephone>sample string 7</Telephone>
<XrmContactId>128aa69c-81e4-4864-a13e-c4bea6bd3be5</XrmContactId>
</UserRepresentation>
application/hal+json
{
"Id": "eb2019d0-b6dd-4429-a2ec-9ec9a82f4978",
"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": "f4f41d30-128c-403b-824c-160e23b9c7ca",
"StatusValue": 9,
"StatusLabel": "sample string 10",
"JobTitle": "sample string 11",
"JobRole": "4364b7f7-890a-4143-834f-2954a7cd8516",
"InvitationCode": "cc1639a1-158e-47d1-8db3-1f6ce7ac8740",
"XrmContactId": "128aa69c-81e4-4864-a13e-c4bea6bd3be5",
"_links": {
"self": {
"href": "/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978"
},
"sample string 1": {
"href": "sample string 2",
"title": "sample string 3"
},
"roles": {
"href": "/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles"
},
"subjects": {
"href": "/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects"
}
}
}
application/hal+xml
<resource rel="sample string 13" href="~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978" name="sample string 15"> <link rel="sample string 1" href="sample string 2" /> <link rel="roles" href="~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/roles" /> <link rel="subjects" href="~/users/eb2019d0-b6dd-4429-a2ec-9ec9a82f4978/subjects" /> <Id>eb2019d0-b6dd-4429-a2ec-9ec9a82f4978</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>f4f41d30-128c-403b-824c-160e23b9c7ca</OrgId> <StatusValue>9</StatusValue> <StatusLabel>sample string 10</StatusLabel> <JobTitle>sample string 11</JobTitle> <JobRole>4364b7f7-890a-4143-834f-2954a7cd8516</JobRole> <InvitationCode>cc1639a1-158e-47d1-8db3-1f6ce7ac8740</InvitationCode> <XrmContactId>128aa69c-81e4-4864-a13e-c4bea6bd3be5</XrmContactId> </resource>