Wiki source code of tempuser_create.php
Last modified by YellowFox_RD on 2024/12/19 10:11
Hide last authors
author | version | line-number | content |
---|---|---|---|
![]() |
1.1 | 1 | (% class="box" %) |
![]() |
2.1 | 2 | (((Table of Contents))) |
![]() |
1.1 | 3 | {{toc/}} |
4 | |||
![]() |
2.1 | 5 | Creates a new temporary user. |
6 | //Note: Due to the amount of data transferred, it is advisable to address this RTI function via POST instead of GET.// | ||
7 | = Description = | ||
![]() |
1.1 | 8 | //**(% class="blue mark" %)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// |
![]() |
2.1 | 9 | = Parameters = |
![]() |
1.1 | 10 | |
![]() |
2.1 | 11 | |=Parameter|=Description|=Type|=Note|=Mandatory |
12 | |company|RTI company key|STRING||yes | ||
13 | |import|RTI import key|STRING||yes | ||
14 | |user|data for new user|JSON OBJECT STRING|JSON object must contain the following parameters: | ||
![]() |
1.1 | 15 | ((( |
![]() |
2.1 | 16 | * "start" = valid from date, format YYYY-MM-DD HH:SS |
17 | * "end" = valid to date, format YYYY-MM-DD HH:SS | ||
18 | * "firstname" = firstname of new user | ||
19 | * "lastname" = lastname of new user | ||
20 | * "email" = email address of new user | ||
21 | )))|yes | ||
22 | |vehicles|assigned vehicles of the new user|JSON ARRAY STRING|JSON array mit RTI vehicle keys|no | ||
23 | |portal_rights|portal rights of the new user|JSON OBJECT STRING|JSON object with portal rights. The following portal rights can be assigned: | ||
![]() |
1.1 | 24 | ((( |
![]() |
2.1 | 25 | |=Area|=Parameter|=possible portalrights |
26 | |Address Management|address_manager|((( | ||
27 | * **no** | ||
28 | * see | ||
29 | * edit | ||
![]() |
1.1 | 30 | ))) |
![]() |
2.1 | 31 | |Orders & Messages|message_manager|((( |
32 | * **no ** | ||
33 | * see | ||
34 | * edit | ||
![]() |
1.1 | 35 | ))) |
![]() |
2.1 | 36 | |Maintenance Database|wdb|((( |
37 | * **no ** | ||
38 | * see | ||
39 | * confirm | ||
40 | * edit | ||
![]() |
1.1 | 41 | ))) |
![]() |
2.1 | 42 | |Time recording|zef|((( |
43 | * **no ** | ||
44 | * see | ||
45 | * edit | ||
![]() |
1.1 | 46 | ))) |
![]() |
2.1 | 47 | |Logbook|logbook|((( |
48 | * **no ** | ||
49 | * see | ||
50 | * edit | ||
![]() |
1.1 | 51 | ))) |
![]() |
2.1 | 52 | |Personnel Information|personalinfo|((( |
53 | * **hide ** | ||
54 | * see | ||
55 | * edit | ||
![]() |
1.1 | 56 | ))) |
![]() |
2.1 | 57 | |Forms research|customdialog|((( |
58 | * **no ** | ||
59 | * edit | ||
![]() |
1.1 | 60 | ))) |
![]() |
2.1 | 61 | |Research Pictures|picture_search|((( |
62 | * **no ** | ||
63 | * see | ||
64 | * edit | ||
![]() |
1.1 | 65 | ))) |
![]() |
2.1 | 66 | |RDL files of deleted vehicles|see_deleted_rdl|((( |
67 | * **no ** | ||
68 | * see | ||
![]() |
1.1 | 69 | ))) |
![]() |
2.1 | 70 | |Digitacho Download/Archive|digitacho|((( |
71 | * **no ** | ||
72 | * see | ||
73 | * add_other_activities | ||
74 | * edit | ||
![]() |
1.1 | 75 | ))) |
![]() |
2.1 | 76 | |Expenses|travelcosts|((( |
77 | * **no ** | ||
78 | * see | ||
79 | * edit | ||
![]() |
1.1 | 80 | ))) |
![]() |
2.1 | 81 | |View searches|view_searches|((( |
82 | * **no** | ||
83 | * yes | ||
![]() |
1.1 | 84 | ))) |
![]() |
2.1 | 85 | |View positions|view_positions|((( |
86 | * no | ||
87 | * **yes** | ||
![]() |
1.1 | 88 | ))) |
![]() |
2.1 | 89 | |Inventory|inventory|((( |
90 | * **no ** | ||
91 | * see | ||
92 | * edit | ||
93 | * edit_and_profile_changes | ||
![]() |
1.1 | 94 | ))) |
![]() |
2.1 | 95 | |Inventory history|inventory_history|((( |
96 | * **no ** | ||
97 | * see | ||
98 | * edit | ||
![]() |
1.1 | 99 | ))) |
![]() |
2.1 | 100 | |Sublicense Management|sublicense_management|((( |
101 | * **no ** | ||
102 | * edit | ||
![]() |
1.1 | 103 | ))) |
104 | ))) | ||
![]() |
2.1 | 105 | Note: If a portal right is not specified in the JSON object, the default portal right for this area automatically applies. |
106 | The standard portal rights are indicated in **bold** in the table above.|no | ||
![]() |
1.1 | 107 | |
![]() |
2.1 | 108 | = Return = |
109 | If successful, "**OK**" will be returned.. | ||
110 | If there are missing or incorrect entries, an "(% class="error" %)**ERROR:Beschreibung**(%%)" is returned. | ||
111 | = Examples = | ||
112 | **Create a new temporary user with standard portal rights and one vehicle assignment** | ||
![]() |
1.1 | 113 | {{code language="java"}}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"]{{/code}} |
114 | |||
115 | // | ||
116 | // | ||
![]() |
2.1 | 117 | **Create a new temporary user with portal rights for positions, addresses, orders and messages and multiple vehicle assignments** |
![]() |
1.1 | 118 | {{code language="java"}}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"}{{/code}} |
119 | |||
120 | // | ||
121 | // | ||
122 |