Notifications

29 views

Description

Incoming Azure user provisioning user session is set to "soap.guest" instead of the user defined in Azure. 

In the below example "Admin"


Release or Environment

ALL

Cause

"Require basic authorisation for incoming SOAP requests" is unchecked hence user session is set as "soap.guest"


Logs: 

2020-07-08 03:48:22 (227) API_INT-thread-3 SYSTEM txid=ecbacb761b79 HTTP authorization validated user 'soap.guest'
2020-07-08 03:48:22 (227) API_INT-thread-3 SYSTEM txid=ecbacb761b79 Session user set to soap.guest
2020-07-08 03:48:22 (236) API_INT-thread-3 SYSTEM txid=ecbacb761b79 *** Start #63296 /sys_user.do, user: soap.guest
2020-07-08 03:48:22 (237) API_INT-thread-3 SYSTEM txid=ecbacb761b79 SOAPProcessor: initial session inactivity timeout is 60 seconds
2020-07-08 03:48:22 (237) API_INT-thread-3 SYSTEM txid=ecbacb761b79 SOAPProcessor: initial soap request timeout is 60 seconds
2020-07-08 03:48:22 (237) API_INT-thread-3 SYSTEM txid=ecbacb761b79 SOAPProcessor: session inactivity timeout changed to 60 seconds
2020-07-08 03:48:22 (238) API_INT-thread-3 SYSTEM txid=ecbacb761b79 SOAPProcessor: <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><getRecords xmlns="https://instancename.service-now.com/sys_user"><user_name>admin</user_name></getRecords></s:Body></s:Envelope>
2020-07-08 03:48:22 (244) API_INT-thread-3 SYSTEM txid=ecbacb761b79 Created SOAPProcessorThread24ba8f7a1bb914108308c036464bcba1
2020-07-08 03:48:22 (265) API_INT-thread-3 SYSTEM txid=ecbacb761b79 Sending response
2020-07-08 03:48:22 (265) API_INT-thread-3 SYSTEM txid=ecbacb761b79 Response bytes sent: 722
2020-07-08 03:48:22 (265) API_INT-thread-3 SYSTEM txid=ecbacb761b79 SOAPProcessor done
2020-07-08 03:48:22 (266) API_INT-thread-3 SYSTEM txid=ecbacb761b79 *** End #63296 /sys_user.do, user: soap.guest, total time: 0:00:00.047, processing time: 0:00:00.047, SQL time: 0:00:00.010 (count: 32)


Resolution

  • From Filter Navigator>System Properties > Webservices 

  • Enable Require basic authorization for incoming SOAP requests. (YES)


Logs: 

2020-07-08 04:00:54 (914) API_INT-thread-2 SYSTEM txid=909d4bbe1bf5 HTTP authorization validated user 'admin'
2020-07-08 04:00:54 (914) API_INT-thread-2 SYSTEM txid=909d4bbe1bf5 Session user set to azureintegration
2020-07-08 04:00:54 (941) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 *** Start #44013 /sys_user.do, user: azureintegration
2020-07-08 04:00:54 (941) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 SOAPProcessor: initial session inactivity timeout is 60 seconds
2020-07-08 04:00:54 (941) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 SOAPProcessor: initial soap request timeout is 60 seconds
2020-07-08 04:00:54 (941) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 SOAPProcessor: session inactivity timeout changed to 60 seconds
2020-07-08 04:00:54 (942) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 SOAPProcessor: <?xml version="1.0" encoding="UTF-8"?><s:Envelope xmlns:s="http://schemas.xmlsoap.org/soap/envelope/"><s:Body><getRecords xmlns="https://instancename.service-now.com/sys_user"><user_name>admin</user_name></getRecords></s:Body></s:Envelope>
2020-07-08 04:00:54 (943) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 Created SOAPProcessorThreadd09d4f7a1b395410ccee2fc8274bcbc5
2020-07-08 04:00:54 (965) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 Sending response
2020-07-08 04:00:54 (966) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 Response bytes sent: 881
2020-07-08 04:00:54 (966) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 SOAPProcessor done
2020-07-08 04:00:54 (967) API_INT-thread-2 5C9D4BBE1BF55410CCEE2FC8274BCBF7 txid=909d4bbe1bf5 *** End #44013 /sys_user.do, user: admin, total time: 0:00:00.065, processing time: 0:00:00.065,

Article Information

Last Updated:2020-07-21 05:20:02
Published:2020-07-21