function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Patrick WangPatrick Wang 

S2S Connection User Debug

I was able to use https://XXX.salesforce.com/p/setup/layout/AddApexDebugLogUser?retURL=%2Fsetup%2Fui%2FlistApexTraces.apexp&UserLookupInput_lkid=YYYYYYYYYYYYYY
&UserLookupInput=Connection%20User  to log the debug file for Connection User for using S2S connection. But now when I try to run this url in the brower, it gives me Insufficient Privileges error. 

Any suggestion?
Jeff HunsakerJeff Hunsaker
DOes anyone have a solution for this.  I am experiencing the same thing.  How do you debug these connection issues?
Jeisson HernandezJeisson Hernandez
Hi I have same problem, it's unnaceptable that Salesforce don't provide a debug for S2S Connections
Jeff HunsakerJeff Hunsaker
I finally found an answer for this.  Someone at salesforce gave me this link to setup the user.  This worked for me.

https://help.salesforce.com/apex/HTViewSolution?urlname=How-to-debug-a-system-user&language=en_US

you have to use Workbench, but the process is pretty straight forward.  KEEP IN MIND that if you copy the JSON piece directly from the Help, there are funky characters in it.  Here is a clean version.  This will make more sense when you read the article.

{
  "TracedEntityId" : "0054B000000L1I2QAK",
  "ExpirationDate" : "2016-05-012T23:04:31.000-0500",
  "DebugLevelId" : "7dl4B0000008Q74",
  "LogType" : "USER_DEBUG",
  "StartDate" : "2016-05-12T12:34:31.000-0500"
}

The -500 on the dates, changes the time from GMT to where my server exists.