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
Dave WallinDave Wallin 

Loggin into other user accounts for synchronisation

Hello there.  I am using c# to connect to the SalesForce site and sucessfully logging in.  I want to know how to access the data from another users account if the account I log in with has administrative rights.  For example:  I log in as myself, then I want to "proxy", or "sudo" into another user account, to query that acocunt for all of its contacts.  Is this possible with SalesForce or do I need each users login and password information?  How would I do this?  Thanks.
Ron HessRon Hess
There is no sudo in the api, you are who you login as.
Dave WallinDave Wallin
So the only way to extract contacts from someone's account would be to login with their username and password?
Ron HessRon Hess
Yes, if those contacts are private.
Normally contacts that have accounts are viewable by sysadmin, only contacts that are not related to accounts are private to that user.