tempuser_create.php

Last modified by YellowFox_RD on 2024/12/19 10:11

Table of Contents

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 keySTRINGyes
importRTI import keySTRINGyes
userdata for new userJSON OBJECT STRINGJSON 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
vehiclesassigned vehicles of the new userJSON ARRAY STRINGJSON array mit RTI vehicle keysno
portal_rightsportal rights of the new userJSON OBJECT STRINGJSON 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 Picturespicture_search
  • no 
  • see
  • edit
RDL files of deleted vehiclessee_deleted_rdl
  • no 
  • see
Digitacho Download/Archivedigitacho
  • no 
  • see
  • add_other_activities
  • edit
Expensestravelcosts
  • no 
  • see
  • edit
View searchesview_searches
  • no
  • yes
View positionsview_positions
  • no
  • yes
Inventoryinventory
  • no 
  • see
  • edit
  • edit_and_profile_changes
Inventory historyinventory_history
  • no 
  • see
  • edit
Sublicense Managementsublicense_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"}