Body
-
At least 8 characters (the minimum is configurable per server). Servers with password complexity enabled also require an uppercase letter, a lowercase letter, a number, and one of
!@#$%^&*()-_=+~`,.. Servers that enforce password history reject a previously used password. ZIM-integrated servers also enforce ZIM's policy: at least 8 characters with an uppercase letter, a lowercase letter, and a number. A user whose password fails validation is not created. Itserror_messageisParameter 'Password' is invalid(ZIM's own error text on ZIM-integrated servers). The response is 400 if every user in the request fails, otherwise 207. -
must match "server", "company" or "basic"
Defaults to
basicwhen omitted. Only a Server Admin can create aserveruser. Everycan_*flag defaults tofalsewhen omitted. Thecompanyandserverroles still grant their preset permissions whatever the flags say. -
Record Assignment. Company Admins and Server Admins always have it; set it to give it to a basic user. On ZIM-integrated servers a grant made here survives detaching the ZIM Record Assignment policy.
-
Edit Records. Lets the user edit records on forms they can view. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Delete Records. Lets the user delete records on forms they can view. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Manage Document Templates. Lets the user create, edit and delete document templates. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
-
Generate Documents. Lets the user generate documents from document templates. On ZIM-integrated servers the user's ZIM policies grant or revoke this permission, and replace a value sent here at the user's next sign-in.
curl \
--request POST 'https://api.iformbuilder.com/exzact/api/v80/[servername]/profiles/self/users' \
--header "Content-Type: application/json" \
--header "Authorization: Bearer {access_token}" \
--data '{
"username": "demo_user",
"password": "Testing123!",
"email": "support@iformbuilder.com"
}'
{
"username": "demo_user",
"password": "Testing123!",
"email": "support@iformbuilder.com"
}
[
{
"username": "inspector_1",
"password": "Testing123!",
"email": "inspector1@company.com",
"role": "basic"
},
{
"username": "inspector_2",
"password": "Testing123!",
"email": "inspector2@company.com",
"role": "basic"
}
]
{
"id": 161236
}
[
{
"id": 161239
},
{
"id": 161242
}
]