POST api/organizations/{organizationId}/users
Add a user with the provided information Requires adminstrator for the specificied organization
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| organizationId |
The id of the organization to add user to |
globally unique identifier |
Required |
Body Parameters
UserSimple| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Username | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| Title | string |
None. |
|
| string |
None. |
||
| Phone | string |
None. |
|
| ExternalId | string |
None. |
|
| Roles | Collection of RoleSimple |
None. |
Request Formats
application/json, text/json
Sample:
{
"Id": "c68d723a-ffc7-4d39-9bd0-966f946d2181",
"Username": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Title": "sample string 5",
"Email": "sample string 6",
"Phone": "sample string 7",
"ExternalId": "sample string 8",
"Roles": [
{
"Id": "a63de9bd-7d4a-46e8-b197-61541e4ae989",
"Name": "sample string 2",
"OrganizationId": "a12c1b3e-b67b-4123-a3e9-04577aec3a9d"
},
{
"Id": "a63de9bd-7d4a-46e8-b197-61541e4ae989",
"Name": "sample string 2",
"OrganizationId": "a12c1b3e-b67b-4123-a3e9-04577aec3a9d"
}
]
}
application/xml, text/xml
Sample:
<UserSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
<Email>sample string 6</Email>
<ExternalId>sample string 8</ExternalId>
<FirstName>sample string 3</FirstName>
<Id>c68d723a-ffc7-4d39-9bd0-966f946d2181</Id>
<LastName>sample string 4</LastName>
<Phone>sample string 7</Phone>
<Roles>
<RoleSimple>
<Id>a63de9bd-7d4a-46e8-b197-61541e4ae989</Id>
<Name>sample string 2</Name>
<OrganizationId>a12c1b3e-b67b-4123-a3e9-04577aec3a9d</OrganizationId>
</RoleSimple>
<RoleSimple>
<Id>a63de9bd-7d4a-46e8-b197-61541e4ae989</Id>
<Name>sample string 2</Name>
<OrganizationId>a12c1b3e-b67b-4123-a3e9-04577aec3a9d</OrganizationId>
</RoleSimple>
</Roles>
<Title>sample string 5</Title>
<Username>sample string 2</Username>
</UserSimple>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
UserSimple| Name | Description | Type | Additional information |
|---|---|---|---|
| Id | globally unique identifier |
None. |
|
| Username | string |
None. |
|
| FirstName | string |
None. |
|
| LastName | string |
None. |
|
| Title | string |
None. |
|
| string |
None. |
||
| Phone | string |
None. |
|
| ExternalId | string |
None. |
|
| Roles | Collection of RoleSimple |
None. |
Response Formats
application/json, text/json
Sample:
{
"Id": "bc87dd8e-82ae-46ee-89bd-b6c236a47fe5",
"Username": "sample string 2",
"FirstName": "sample string 3",
"LastName": "sample string 4",
"Title": "sample string 5",
"Email": "sample string 6",
"Phone": "sample string 7",
"ExternalId": "sample string 8",
"Roles": [
{
"Id": "6be226e2-ad14-416b-affd-47e1206ad73f",
"Name": "sample string 2",
"OrganizationId": "4517af03-1a00-4789-918e-fefdfda0cbe7"
},
{
"Id": "6be226e2-ad14-416b-affd-47e1206ad73f",
"Name": "sample string 2",
"OrganizationId": "4517af03-1a00-4789-918e-fefdfda0cbe7"
}
]
}
application/xml, text/xml
Sample:
<UserSimple xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/XCapture.DTO">
<Email>sample string 6</Email>
<ExternalId>sample string 8</ExternalId>
<FirstName>sample string 3</FirstName>
<Id>bc87dd8e-82ae-46ee-89bd-b6c236a47fe5</Id>
<LastName>sample string 4</LastName>
<Phone>sample string 7</Phone>
<Roles>
<RoleSimple>
<Id>6be226e2-ad14-416b-affd-47e1206ad73f</Id>
<Name>sample string 2</Name>
<OrganizationId>4517af03-1a00-4789-918e-fefdfda0cbe7</OrganizationId>
</RoleSimple>
<RoleSimple>
<Id>6be226e2-ad14-416b-affd-47e1206ad73f</Id>
<Name>sample string 2</Name>
<OrganizationId>4517af03-1a00-4789-918e-fefdfda0cbe7</OrganizationId>
</RoleSimple>
</Roles>
<Title>sample string 5</Title>
<Username>sample string 2</Username>
</UserSimple>