But i want to know if the Admin logs in as a particular User, then how can that be figured out i.e. Admin has logged in or the Actual User has logged in.
Unfortunately, there's no way to determine if it's a "sudo" login (as *NIX folk would say), or if the user is actually logged in. When you are "granted login access", you are literally logged in as that person. Might I ask what the use case for this might be? I'm sure the Force.com developers would be interested in knowing this for a future upgrade to the platform.
hi, You found answer of this? how can we know if the Admin logs in as a particular User, then how can that be figured out i.e. Admin has logged in or the Actual User has logged in??
The "UserInfo" object has many methods.
Such as:Userinfo.getUserId() and Userinfo.getUserName()
Thanks for the answer.
But i want to know if the Admin logs in as a particular User, then how can that be figured out i.e. Admin has logged in or the Actual User has logged in.
You found answer of this? how can we know if the Admin logs in as a particular User, then how can that be figured out i.e. Admin has logged in or the Actual User has logged in??