POST User/Validate
Some tooltip text!
• 6 minutes to read
• 6 minutes to read
POST /api/v1/User/Validate
Check that entity is ready for saving, return error messages by field.
Online Restricted: ## The User agent is not available in Online by default. User management is not allowed for partner apps.
Request Headers
| Parameter Name | Description |
|---|---|
| Authorization | Supports 'Basic', 'SoTicket' and 'Bearer' schemes, depending on installation type. |
| X-XSRF-TOKEN | If not using Authorization header, you must provide XSRF value from cookie or hidden input field |
| Content-Type | Content-type of the request body: application/json, text/json, application/xml, text/xml, application/x-www-form-urlencoded, application/json-patch+json, application/merge-patch+json |
| Accept | Content-type(s) you would like the response in: application/json, text/json, application/xml, text/xml, application/json-patch+json, application/merge-patch+json |
| Accept-Language | Convert string references and multi-language values into a specified language (iso2) code. |
| SO-Language | Convert string references and multi-language values into a specified language (iso2) code. Overrides Accept-Language value. |
| SO-Culture | Number, date formatting in a specified culture (iso2 language) code. Partially overrides SO-Language/Accept-Language value. Ignored if no Language set. |
| SO-TimeZone | Specify the timezone code that you would like date/time responses converted to. |
| SO-AppToken | The application token that identifies the partner app. Used when calling Online WebAPI from a server. |
Request Body: user
Entity to be checked for errors.
| Property Name | Type | Description |
|---|---|---|
| AssociateId | Integer | Primary key |
| Name | String | Initials, UserId - also used as login name for on-site installations. Identifies user in archives. |
| Rank | Integer | Rank order |
| Tooltip | String | Tooltip or other description |
| LicenseOwners | Array | The restricted and unrestricted module licenses grouped by license owner. These module licenses are either assigned or unassigned to this user |
| Role | Role | Users role for role-based security. Determines permissions and access rights for the user. |
| UserGroup | UserGroup | The main user group that this user belongs to. |
| OtherGroups | Array | The other groups this user is a member of, apart from the main user group. |
| Person | Person | The person associated with this user. Detailed information about the user |
| Deleted | Boolean | If true, the user is retired and should have no rights, not appear in lists, etc. |
| Lastlogin | String | Last login date |
| Lastlogout | String | Last logout date |
| EjUserId | Integer | ID of the ej user record corresponding to this associate; 0 for associates that are not ej users |
| RequestSignature | String | ej users request signature |
| Type | String | User type: 1=InternalAssociate, 2=ResourceAssociate, 3=ExternalAssociate, 4=AnonymousAssociate, 5=SystemAssociate |
| IsPersonRetired | Boolean | True if the user is retired and should have no rights, not appear in lists, etc. |
| IsOnTravel | Boolean | True if the user is on travel. |
| Credentials | Array | List of credentials registered for this user. i.e. valid authentication methods. |
| UserName | String | User name, a.k.a. Login name. This might be an e-mail address. |
| TicketCategories | Array | Request Ticket Categories assigned to the user. |
| NickName | String | The unique nick name for this user. Used in Service as an alias, similar to Name/Initials. |
| WaitingForApproval | Boolean | The user is waiting for an administrator to approve/grant her/him access. |
| ExtraFields | Object | Deprecated: Use {SuperOffice.CRM.Services.User.CustomFields} instead. Extra fields added to the carrier. This could be data from Plug-ins, the foreign key system, external applications, etc. |
| CustomFields | Object | Udef + Extra fields added to the carrier. Extra fields as defined by changes to database schema + user-defined fields as defined by admin. Custom fields combines user defined fields and extra fields into one bucket. The individual {SuperOffice.CRM.Services.User.ExtraFields} and |
| PostSaveCommands | Array | Post custom commands the client should execute after save has completed. |
Response:object
OK
| Response | Description |
|---|---|
| 200 | OK |
Response body: object
Sample request
POST /api/v1/User/Validate
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: sv
Content-Type: application/json; charset=utf-8
{
"AssociateId": 642,
"Name": "Gusikowski-Ward",
"Rank": 182,
"Tooltip": "ratione",
"LicenseOwners": [
{
"Name": "Veum, Welch and Thiel",
"Description": "Multi-lateral discrete Graphic Interface",
"RestrictedModuleLicenses": [
{},
{}
],
"UnrestrictedModuleLicenses": [
{},
{}
]
},
{
"Name": "Veum, Welch and Thiel",
"Description": "Multi-lateral discrete Graphic Interface",
"RestrictedModuleLicenses": [
{},
{}
],
"UnrestrictedModuleLicenses": [
{},
{}
]
}
],
"Role": null,
"UserGroup": null,
"OtherGroups": [
{
"Value": "illum",
"Tooltip": "est",
"Id": 970,
"Rank": 422,
"Deleted": true
},
{
"Value": "illum",
"Tooltip": "est",
"Id": 970,
"Rank": 422,
"Deleted": true
}
],
"Person": null,
"Deleted": false,
"Lastlogin": "2010-04-14T14:34:02.9094863+02:00",
"Lastlogout": "2000-01-31T14:34:02.9094863+01:00",
"EjUserId": 813,
"RequestSignature": "doloremque",
"Type": "AnonymousAssociate",
"IsPersonRetired": false,
"IsOnTravel": false,
"Credentials": [
{
"Type": null,
"Value": "numquam",
"DisplayValue": "ea"
},
{
"Type": null,
"Value": "numquam",
"DisplayValue": "ea"
}
],
"UserName": "Gusikowski LLC",
"TicketCategories": [
{
"Id": 30,
"Name": "Kuhic, Price and Mayert",
"ToolTip": "Tenetur enim aut.",
"Deleted": false,
"Rank": 349,
"Type": "qui",
"ChildItems": [
{},
{}
],
"IconHint": "eius",
"ColorBlock": 100,
"ExtraInfo": "vel",
"StyleHint": "voluptate",
"FullName": "Elinor Shields"
}
],
"NickName": "Stracke-Gleason",
"WaitingForApproval": false,
"ExtraFields": {
"ExtraFields1": "nemo",
"ExtraFields2": "alias"
},
"CustomFields": {
"CustomFields1": "non",
"CustomFields2": "et"
},
"PostSaveCommands": [
{
"Name": "Kulas-Smith",
"DisplayName": "Mueller, Renner and Schumm",
"Description": "Polarised dynamic protocol",
"ToolTip": "Distinctio exercitationem veritatis occaecati et at.",
"Actions": "Implicit",
"ActionData": "soluta"
},
{
"Name": "Kulas-Smith",
"DisplayName": "Mueller, Renner and Schumm",
"Description": "Polarised dynamic protocol",
"ToolTip": "Distinctio exercitationem veritatis occaecati et at.",
"Actions": "Implicit",
"ActionData": "soluta"
}
]
}
Sample response
HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8
{
"1": "nesciunt",
"2": "esse"
}