Wiki source code of tempuser_create.php
Last modified by YellowFox_RD on 2024/12/19 10:11
Show last authors
author | version | line-number | content |
---|---|---|---|
1 | (% class="box" %) | ||
2 | (((Table of Contents))) | ||
3 | {{toc/}} | ||
4 | |||
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 = | ||
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// | ||
9 | = Parameters = | ||
10 | |||
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: | ||
15 | ((( | ||
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: | ||
24 | ((( | ||
25 | |=Area|=Parameter|=possible portalrights | ||
26 | |Address Management|address_manager|((( | ||
27 | * **no** | ||
28 | * see | ||
29 | * edit | ||
30 | ))) | ||
31 | |Orders & Messages|message_manager|((( | ||
32 | * **no ** | ||
33 | * see | ||
34 | * edit | ||
35 | ))) | ||
36 | |Maintenance Database|wdb|((( | ||
37 | * **no ** | ||
38 | * see | ||
39 | * confirm | ||
40 | * edit | ||
41 | ))) | ||
42 | |Time recording|zef|((( | ||
43 | * **no ** | ||
44 | * see | ||
45 | * edit | ||
46 | ))) | ||
47 | |Logbook|logbook|((( | ||
48 | * **no ** | ||
49 | * see | ||
50 | * edit | ||
51 | ))) | ||
52 | |Personnel Information|personalinfo|((( | ||
53 | * **hide ** | ||
54 | * see | ||
55 | * edit | ||
56 | ))) | ||
57 | |Forms research|customdialog|((( | ||
58 | * **no ** | ||
59 | * edit | ||
60 | ))) | ||
61 | |Research Pictures|picture_search|((( | ||
62 | * **no ** | ||
63 | * see | ||
64 | * edit | ||
65 | ))) | ||
66 | |RDL files of deleted vehicles|see_deleted_rdl|((( | ||
67 | * **no ** | ||
68 | * see | ||
69 | ))) | ||
70 | |Digitacho Download/Archive|digitacho|((( | ||
71 | * **no ** | ||
72 | * see | ||
73 | * add_other_activities | ||
74 | * edit | ||
75 | ))) | ||
76 | |Expenses|travelcosts|((( | ||
77 | * **no ** | ||
78 | * see | ||
79 | * edit | ||
80 | ))) | ||
81 | |View searches|view_searches|((( | ||
82 | * **no** | ||
83 | * yes | ||
84 | ))) | ||
85 | |View positions|view_positions|((( | ||
86 | * no | ||
87 | * **yes** | ||
88 | ))) | ||
89 | |Inventory|inventory|((( | ||
90 | * **no ** | ||
91 | * see | ||
92 | * edit | ||
93 | * edit_and_profile_changes | ||
94 | ))) | ||
95 | |Inventory history|inventory_history|((( | ||
96 | * **no ** | ||
97 | * see | ||
98 | * edit | ||
99 | ))) | ||
100 | |Sublicense Management|sublicense_management|((( | ||
101 | * **no ** | ||
102 | * edit | ||
103 | ))) | ||
104 | ))) | ||
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 | ||
107 | |||
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** | ||
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 | // | ||
117 | **Create a new temporary user with portal rights for positions, addresses, orders and messages and multiple vehicle assignments** | ||
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 |