UserCreate()

Users may be created using the Web Portal or by a Node (for example, a LASP, Access Portal, or Retailer).

Node SHALL inform the user that a User will be created, why it is being created, and that an email notification will follow.

Nodes acting on behalf of standard Users cannot create a new full access User; Users may only create a new User of the same or lesser UserClass.

API URL:

[BaseURL]/Account/{AccountID}/User

Request Method:

POST

Request Parameters:

Request Format

XML type:

Required information:

Optional information:

Headers:

Response Format

Status Code:

Headers:

Errors

Example

Create a new full access User for an existing Account

In the following example a Node acting on behalf of a User with a sufficient @UserClass createst a new full access User within an existing Account.

Sample Request:

POST /rest/2015/02/Account/urn:dece:accountid:org:dece:D39621A70BA347A6B098054512DCDE26/User HTTP/1.1
Host: api.uvvu.com
Authorization: SAML2 assertion=[Assertion]
Content-type: application/xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<User UserClass="urn:dece:role:user:class:full" UserID="urn:dece:userid:org:dece:6EB44425B9814DDFB9E7F70C31A184C7" xmlns="http://www.decellc.org/schema/2015/03/coordinator">
    <Name>
        <GivenName>Clark</GivenName>
        <SurName>Kent1278</SurName>
    </Name>
    <ContactInfo>
        <PrimaryEmail>
            <Value>09f1f582-de1d-48c1-ab19-efc1ccb76ccc@qa.uvvu.com</Value>
        </PrimaryEmail>
    </ContactInfo>
    <Languages>
        <Language>en-US</Language>
    </Languages>
    <Credentials>
        <Username>test_-_cl-3a612a58-c942-44d9-b9c4-788084b363aa</Username>
        <Password>SuperSecret1234</Password>
    </Credentials>
</User>

Sample Response:

HTTP/1.1 201 Created
Date: [Date]
Location: https://api.uvvu.com/rest/2015/02/Account/urn:dece:accountid:org:dece:D39621A70BA347A6B098054512DCDE26/User/urn:dece:userid:org:dece:6EB44425B9814DDFB9E7F70C31A184C7
X-transaction-info: [TransactionInfo]

See Also