File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -258,14 +258,15 @@ def get_or_create_user(self, payload):
258258 # Get MAXADMIN API key for authentication
259259 maxadmin_manage_api_key = self .create_or_get_manage_api_key_for_user (MASUserUtils .MAXADMIN , temporary = True )
260260
261- url = f"{ self .manage_api_url_internal } /maximo/api/os/masapiuser "
261+ url = f"{ self .manage_api_url_internal } /maximo/api/os/masperuser "
262262 querystring = {
263263 "lean" : 1
264264 }
265265 headers = {
266266 "Content-Type" : "application/json" ,
267267 "apikey" : maxadmin_manage_api_key ["apikey" ]
268268 }
269+ self .logger .info (f"Creating new user { payload ['id' ]} with Manage API with payload { payload } " )
269270 response = requests .post (
270271 url ,
271272 json = payload ,
@@ -274,6 +275,8 @@ def get_or_create_user(self, payload):
274275 cert = self .manage_internal_client_pem_file_path ,
275276 verify = self .manage_internal_ca_pem_file_path
276277 )
278+ self .logger .info (f"Response status code: { response .status_code } " )
279+ self .logger .info (f"Response text: { response .text } " )
277280 if response .status_code == 201 :
278281 return response .json ()
279282 else :
You can’t perform that action at this time.
0 commit comments