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
SpunkySpunky 

Bug with "Login as user" functionality

I deployed a change over the weekend and discovered that I could not "Login as user" to verify the change.

 

The changes had deployed succesfully. The changes were visible to me when I logged in as myself (system adminstrator). But when I used the "login as user" function to see the view from another user's perspective, I didn't see the change.

 

After hours of trying to troubleshoot it, i finally contacted the user and asked them to login and send me a screenshot of their view and sure enough, it was all working as it should have.

 

Has anyone ever come across this? Is this a bug? I thought all changes could be viwed with the login as user function.

ShuchiMShuchiM

Is the page accessible for that user's profile ? 

dmchengdmcheng

What kind of change did you deploy?  Vf page, Apex class, page layout, etc?

SpunkySpunky

Yes. All the visualforce page security was setup correctly, everything was tested in the sandbox before deployment.

 

I went through each step with a fine tooth comb again after I couldnt see the changes.

SpunkySpunky

VF Page, VF components and trigger

CloudMavenCloudMaven

Has "Administrators Can Log in as Any User" been enabled in the Org?  

SpunkySpunky

yes

dmchengdmcheng

Strange.  Did you try clearing the cache in your browser?  I can't think of any other reason why there would be a problem while  logged in as the other user.

SpunkySpunky

Ah! That could be it. I didnt check that but that makes sense to me. I will make a note of that if I run into this issue again.