Page tree
Skip to end of metadata
Go to start of metadata

Creates a new temporary user.

Note: Due to the amount of data transferred, it is advisable to address this RTI function via POST instead of GET.

Description

POST tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user=USER_JSON_OBJECT&vehicles=VEHICLES_RTICODES_JSON_ARRAY&portal_rights=PORTAL_RIGHTS_JSON_OBJECT

Parameters


ParameterDescriptionTypeNoteMandatory
companyRTI company keySTRING
yes
importRTI import keySTRING

yes

userdata for new userJSON OBJECT STRING

JSON object must contain the following parameters:

  • "start" = valid from date, format YYYY-MM-DD HH:SS
  • "end" = valid to date, format YYYY-MM-DD HH:SS
  • "firstname" = firstname of new user
  • "lastname" = lastname of new user
  • "email" = email address of new user
yes
vehicles

assigned vehicles of the new user

JSON ARRAY STRINGJSON array mit RTI vehicle keysno
portal_rightsportal rights of the new userJSON OBJECT STRING

JSON object with portal rights. The following portal rights can be assigned:

AreaParameterpossible portalrights
Address Managementaddress_manager
  • no
  • see
  • edit
Orders & Messagesmessage_manager
  • no
  • see
  • edit
Maintenance Databasewdb
  • no
  • see
  • confirm
  • edit
Time recordingzef
  • no
  • see
  • edit
Logbooklogbook
  • no
  • see
  • edit
Personnel Informationpersonalinfo
  • hide
  • see
  • edit
Forms researchcustomdialog
  • no
  • edit
Research Pictures
picture_search
  • no
  • see
  • edit
RDL files of deleted vehiclessee_deleted_rdl
  • no
  • see
Digitacho Download/Archive
digitacho
  • no
  • see
  • add_other_activities
  • edit
Expenses
travelcosts
  • no
  • see
  • edit
View searchesview_searches
  • no
  • yes
View positionsview_positions
  • no
  • yes
Inventory
inventory
  • no
  • see
  • edit
  • edit_and_profile_changes
Inventory history
inventory_history
  • no
  • see
  • edit
Sublicense Management
sublicense_management
  • no
  • edit

Note: If a portal right is not specified in the JSON object, the default portal right for this area automatically applies.
The standard portal rights are indicated in bold in the table above.

no

Return

If successful, "OK" will be returned..

If there are missing or incorrect entries, an "ERROR:Beschreibung" is returned.

Examples

Create a new temporary user with standard portal rights and one vehicle assignment
https://map.yellowfox.de/rti/tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user={"start":"2018-11-01 00:00:00","end":"2018-12-01 00:00:00","lastname":"Mustermann","firstname":"Max","email": "m.mustermann@example.com"}&vehicles=["RTI_VEHICLEKEY"]


Create a new temporary user with portal rights for positions, addresses, orders and messages and multiple vehicle assignments
https://map.yellowfox.de/rti/tempuser_create.php?company=RTI_COMPANYKEY&import=RTI_IMPORTKEY&user={"start":"2018-11-01 00:00:00","end":"2018-12-01 00:00:00","lastname":"Mustermann","firstname":"Max","email": "m.mustermann@example.com"}&vehicles=["RTI_VEHICLEKEY","RTI_VEHICLEKEY","RTI_VEHICLEKEY"]&portal_rights={"view_positions":"yes","address_manager":"edit","message_manager":"edit"}


  • No labels