• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Edit
Show / Hide Table of Contents

POST Agents/User/SaveUser

Some tooltip text!
• 12 minutes to read
 • 12 minutes to read
POST /api/v1/Agents/User/SaveUser

Updates the existing User or creates a new User if the id parameter is empty

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: entity

The User to be saved.

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. Use MDO List name "usergroup" to get list items.
OtherGroups Array The other groups this user is a member of, apart from the main user group. Use MDO List name "usergroup" to get list items.
Person Person The person associated with this user. Detailed information about the user Use MDO List name "person_new" to get list items.
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. Use MDO List name "ejCategory" to get list items.
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 UserDefinedFields properties are deprecated in favor of this combined collection.
PostSaveCommands Array Post custom commands the client should execute after save has completed.

Response:

OK

Response Description
200 OK

Response body: User

Property Name Type Description
AssociateId int32 Primary key
Name string Initials, UserId - also used as login name for on-site installations. Identifies user in archives.
Rank int32 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. Use MDO List name "usergroup" to get list items.
OtherGroups array The other groups this user is a member of, apart from the main user group. Use MDO List name "usergroup" to get list items.
Person Person The person associated with this user. Detailed information about the user Use MDO List name "person_new" to get list items.
Deleted bool If true, the user is retired and should have no rights, not appear in lists, etc.
Lastlogin date-time Last login date
Lastlogout date-time Last logout date
EjUserId int32 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 bool True if the user is retired and should have no rights, not appear in lists, etc.
IsOnTravel bool 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. Use MDO List name "ejCategory" to get list items.
NickName string The unique nick name for this user. Used in Service as an alias, similar to Name/Initials.
WaitingForApproval bool 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 UserDefinedFields properties are deprecated in favor of this combined collection.
PostSaveCommands array Post custom commands the client should execute after save has completed.
TableRight TableRight The carrier's table right
FieldProperties object Field property dictionary mapping field names to field access rights.

Sample request

POST /api/v1/Agents/User/SaveUser
Authorization: Basic dGplMDpUamUw
Accept: application/json; charset=utf-8
Accept-Language: *
Content-Type: application/json; charset=utf-8

{
  "AssociateId": 343,
  "Name": "Rempel, Doyle and O'Conner",
  "Rank": 738,
  "Tooltip": "enim",
  "LicenseOwners": [
    {
      "Name": "Maggio Inc and Sons",
      "Description": "Business-focused neutral methodology",
      "RestrictedModuleLicenses": [
        {},
        {}
      ],
      "UnrestrictedModuleLicenses": [
        {},
        {}
      ]
    },
    {
      "Name": "Maggio Inc and Sons",
      "Description": "Business-focused neutral methodology",
      "RestrictedModuleLicenses": [
        {},
        {}
      ],
      "UnrestrictedModuleLicenses": [
        {},
        {}
      ]
    }
  ],
  "Role": null,
  "UserGroup": null,
  "OtherGroups": [
    {
      "Value": "consequatur",
      "Tooltip": "nihil",
      "Id": 708,
      "Rank": 683,
      "Deleted": true
    },
    {
      "Value": "consequatur",
      "Tooltip": "nihil",
      "Id": 708,
      "Rank": 683,
      "Deleted": true
    }
  ],
  "Person": null,
  "Deleted": false,
  "Lastlogin": "2007-02-04T16:32:40.4300996+01:00",
  "Lastlogout": "2012-12-22T16:32:40.4300996+01:00",
  "EjUserId": 150,
  "RequestSignature": "adipisci",
  "Type": "AnonymousAssociate",
  "IsPersonRetired": true,
  "IsOnTravel": false,
  "Credentials": [
    {
      "Type": null,
      "Value": "laborum",
      "DisplayValue": "temporibus"
    },
    {
      "Type": null,
      "Value": "laborum",
      "DisplayValue": "temporibus"
    }
  ],
  "UserName": "Schuppe, Schultz and Wiza",
  "TicketCategories": [
    {
      "Id": 137,
      "Name": "Littel, McDermott and Bauch",
      "ToolTip": "Voluptatem libero tenetur animi.",
      "Deleted": false,
      "Rank": 262,
      "Type": "sit",
      "ChildItems": [
        {},
        {}
      ],
      "IconHint": "vel",
      "ColorBlock": 205,
      "ExtraInfo": "quis",
      "StyleHint": "optio",
      "FullName": "Emmett Boyle"
    }
  ],
  "NickName": "Bashirian-Carter",
  "WaitingForApproval": false,
  "ExtraFields": {
    "ExtraFields1": "sint",
    "ExtraFields2": "qui"
  },
  "CustomFields": {
    "CustomFields1": "enim",
    "CustomFields2": "vero"
  },
  "PostSaveCommands": [
    {
      "Name": "Bergstrom, Murphy and Rice",
      "DisplayName": "Bailey-Durgan",
      "Description": "Re-contextualized homogeneous adapter",
      "ToolTip": "Voluptatum provident voluptatem voluptatem labore quia.",
      "Actions": "Implicit",
      "ActionData": "quasi"
    },
    {
      "Name": "Bergstrom, Murphy and Rice",
      "DisplayName": "Bailey-Durgan",
      "Description": "Re-contextualized homogeneous adapter",
      "ToolTip": "Voluptatum provident voluptatem voluptatem labore quia.",
      "Actions": "Implicit",
      "ActionData": "quasi"
    }
  ]
}

Sample response

HTTP/1.1 200 OK
Content-Type: application/json; charset=utf-8

{
  "AssociateId": 227,
  "Name": "D'Amore LLC",
  "Rank": 172,
  "Tooltip": "doloribus",
  "LicenseOwners": [
    {
      "Name": "Feil, Rogahn and Schiller",
      "Description": "Realigned regional infrastructure",
      "RestrictedModuleLicenses": [
        {},
        {}
      ],
      "UnrestrictedModuleLicenses": [
        {},
        {}
      ],
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 563
        }
      }
    },
    {
      "Name": "Feil, Rogahn and Schiller",
      "Description": "Realigned regional infrastructure",
      "RestrictedModuleLicenses": [
        {},
        {}
      ],
      "UnrestrictedModuleLicenses": [
        {},
        {}
      ],
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 563
        }
      }
    }
  ],
  "Role": null,
  "UserGroup": null,
  "OtherGroups": [
    {
      "Value": "ratione",
      "Tooltip": "delectus",
      "Id": 401,
      "Rank": 186,
      "Deleted": false,
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 110
        }
      }
    }
  ],
  "Person": null,
  "Deleted": true,
  "Lastlogin": "2014-11-26T16:32:40.4300996+01:00",
  "Lastlogout": "2007-03-26T16:32:40.4300996+02:00",
  "EjUserId": 527,
  "RequestSignature": "error",
  "Type": "AnonymousAssociate",
  "IsPersonRetired": false,
  "IsOnTravel": false,
  "Credentials": [
    {
      "Type": null,
      "Value": "ipsum",
      "DisplayValue": "perspiciatis",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 927
        }
      }
    },
    {
      "Type": null,
      "Value": "ipsum",
      "DisplayValue": "perspiciatis",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 927
        }
      }
    }
  ],
  "UserName": "Hilll Inc and Sons",
  "TicketCategories": [
    {
      "Id": 586,
      "Name": "Stanton-Kunde",
      "ToolTip": "Eius enim et.",
      "Deleted": false,
      "Rank": 862,
      "Type": "aliquid",
      "ChildItems": [
        {},
        {}
      ],
      "IconHint": "enim",
      "ColorBlock": 940,
      "ExtraInfo": "vel",
      "StyleHint": "non",
      "FullName": "Prof. Lera Stella Rippin",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.String",
          "FieldLength": 147
        }
      }
    }
  ],
  "NickName": "Kub-Hoppe",
  "WaitingForApproval": false,
  "ExtraFields": {
    "ExtraFields1": "odio",
    "ExtraFields2": "quia"
  },
  "CustomFields": {
    "CustomFields1": "quasi",
    "CustomFields2": "fugit"
  },
  "PostSaveCommands": [
    {
      "Name": "Gutmann, Roberts and Nikolaus",
      "DisplayName": "Marvin-Gleichner",
      "Description": "De-engineered 4th generation utilisation",
      "ToolTip": "Et quia id.",
      "Actions": "Implicit",
      "ActionData": "recusandae",
      "TableRight": null,
      "FieldProperties": {
        "fieldName": {
          "FieldRight": null,
          "FieldType": "System.Int32",
          "FieldLength": 103
        }
      }
    }
  ],
  "TableRight": null,
  "FieldProperties": {
    "fieldName": {
      "FieldRight": null,
      "FieldType": "System.String",
      "FieldLength": 569
    }
  }
}
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top