You need to sign in to do that
Don't have an account?

Is there a way to get Accounts associated with a User.
SOQL query to get account Ids that is associated with a User (a salesforce user)?. Or a SOAP api solution for the same.
You need to sign in to do that
Don't have an account?
U can get idea through the below image
first you need to know Sf userid(get account Ids that is associated with a User)
//example
String sfid="005hhfd6634hh";
&&&&
replace "soqlQuery" as below
String soqlQuery="select id from account where ownerid in :+sfid ";