Toggle Side Panel

  • Home
  • Articles
    • All Articles
    • Blogs
    • Videos
    • Infographics
  • Consultants
    • Salesforce Product Expertise
      • Top Salesforce ConsultantsTop Salesforce Consultants
      • Marketing Cloud ConsultantsMarketing Cloud Consultants
      • Service Cloud ConsultantsService Cloud Consultants
      • Experience Cloud ConsultantsExperience Cloud Consultants
      • Analytics Cloud ConsultantsAnalytics Cloud Consultants
    • Salesforce Industry Expertise
      • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
      • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
      • Health Cloud ConsultantsHealth Cloud Consultants
      • Commerce Cloud ConsultantsCommerce Cloud Consultants
      • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
    • Salesforce Experts by Location
      • USATop Salesforce Consultants in USA
      • IndiaTop Salesforce Consultants in India
      • AustraliaTop Salesforce Consultants in Australia
      • United KingdomTop Salesforce Consultants in UK
      • CanadaTop Salesforce Consultants in Canada
  • Webinars
  • Marketplace
  • Advertise With Us
  • Contact Us
  • Discussions
More options
    Sign in Sign up
    • Home
    • Articles
      • All Articles
      • Blogs
      • Videos
      • Infographics
    • Consultants
      • Salesforce Product Expertise
        • Top Salesforce ConsultantsTop Salesforce Consultants
        • Marketing Cloud ConsultantsMarketing Cloud Consultants
        • Service Cloud ConsultantsService Cloud Consultants
        • Experience Cloud ConsultantsExperience Cloud Consultants
        • Analytics Cloud ConsultantsAnalytics Cloud Consultants
      • Salesforce Industry Expertise
        • Non-Profit Cloud ConsultantsNon-Profit Cloud Consultants
        • Financial Service Cloud ConsultantsFinancial Service Cloud Consultants
        • Health Cloud ConsultantsHealth Cloud Consultants
        • Commerce Cloud ConsultantsCommerce Cloud Consultants
        • Manufacturing Cloud ConsultantsManufacturing Cloud Consultants
      • Salesforce Experts by Location
        • USATop Salesforce Consultants in USA
        • IndiaTop Salesforce Consultants in India
        • AustraliaTop Salesforce Consultants in Australia
        • United KingdomTop Salesforce Consultants in UK
        • CanadaTop Salesforce Consultants in Canada
    • Webinars
    • Marketplace
    • Advertise With Us
    • Contact Us
    • Discussions
    Close search

    Activity › Forums › Salesforce® Discussions › How to restrict the controller action for users which are logged in using “Grant Login Access” in Salesforce?

    Tagged: Apex Class, Apex Controller, Controller Action Methods, Grant Login Access, Salesforce Visualforce Page, System Administrator

    • Salesforce® Discussions

      How to restrict the controller action for users which are logged in using “Grant Login Access” in Salesforce?

      Posted by Aman on September 22, 2018 at 9:39 PM

      A Visualforce page and Controller is created. How to restrict the controller action for users which are logged in using “Grant Login Access” in Salesforce?

      Parul replied 7 years, 4 months ago 3 Members · 2 Replies
      • Apex Class
      • Apex Controller
      • Controller Action Methods
      • Grant Login Access
      • Salesforce Visualforce Page
      • System Administrator
    • 2 Replies
    • shariq

      Member
      September 22, 2018 at 9:39 PM

      When System admin logged in on the behalf of any other user. On upper right corner message is displayed that user is logged-in on behalf of some other user. In Visualforce page we can search for the element with class name present or not? If the element with that Class name exist means logged-in user is not a actual user.

    • Parul

      Member
      September 23, 2018 at 5:30 AM

      There's no supported way to detect that a user is masquerading as another user via Grant Login Access. I have seen some suggestions around cookie sniffing, but as you want to restrict access I'd say that would be a very fragile.

    Log In to reply.

    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me
    • Public
    • All Members
    • My Connections
    • Only Me

    application solution

    Popular Salesforce Blogs

    Exploring the Latest Advancement with Salesforce Einstein Copilot's General Availability

    Blog in Others

    Salesforce announced today during its World Tour NYC that Salesforce Einstein Copilot, its conversational AI assistant for CRM, is now generally available. Einstein Copilot was…

    CloudMetic Solutions, Copilot Actions, Copilot Analytics, Copilot Builder, Copilot Recommendations
    Cloudmetic May 13, 2024
    1,486  Views

    Salesforce Einstein Activity Capture Guide in 2024

    Blog in Salesforce Einstein

    Have you ever had issues maintaining accurate, up-to-date information between your Salesforce org and your clients? Einstein Activity Capture is here to work for you…

    AppExchange, Automation, Chatter, Digital Transformation, Einstein Activity Capture
    DB Mar 21, 2024
    925  Views

    Incorporating Impact Management - A Salesforce Guide for Nonprofits

    Blog in Salesforce

    Impact management is crucial in ensuring that nonprofits stay on the path of growth. It involves three things—evidence building, program management, and financial management. Understanding…

    Benefits of Salesforce, Client Relationship Management Tools, Collect Good Data, Components, Consulting Participants
    Apphienz Oct 27, 2021
    1,965  Views

    Popular Salesforce Videos

    Create Custom Auto Number Field With Your Criteria Using Flows | Salesforce

    Create Custom Auto Number Field With Your Criteria Using Flows | Salesforce

    Video in Salesforce Training, Salesforce Automation

    Have you ever want to have an auto number field but it only populates when certain criteria were met on a record? Now you can…

    Salesforce Training, Salesforce Tutorial, salesforce, Salesforce Video, Salesforce Learning
    Warren Oct 21, 2020
    12,803  Views
    70 Salesforce Interview Questions for the Beginners

    70 Salesforce Interview Questions for the Beginners

    Video in Salesforce Training

    First of all, How it is different from the other Salesforce Interview questions videos? Well, We have divided the questions into categories so that you…

    Salesforce Training, Salesforce Tutorial, Process Automation, salesforce, User Setup
    Jogender Dec 9, 2021
    2,204  Views
    Salesforce - The Ultimate Career Booster | Salesforce Tutorials For Beginners

    Salesforce - The Ultimate Career Booster | Salesforce Tutorials For Beginners

    Video in Salesforce Training

    This Salesforce Training Webinar will help you understand how Salesforce is the ultimate career booster for IT, Sales and Marketing. You will learn the Roadmap…

    Salesforce Training, Salesforce Tutorial, Salesforce Careers, Salesforce Certification, Salesforce Developer
    Simplilearn Apr 23, 2019
    1,713  Views
    Footer Forcetalks logo

    support@forcetalks.com

    • twitterx

    Quick Links

    Advertise with Us

    Salesforce® Articles

    Dreamforce 2023

    Top Salesforce® Bloggers 2023

    Top Salesforce Consultants

    Get Listed

    Company

    Contact Us

    About Us

    Privacy Policy

    Terms & Conditions

    InsightHub

    Salesforce Blogs

    Salesforce Videos

    Salesforce Groups

    Salesforce Jobs

    © 2026 - Forcetalks ● All Rights Reserved

    Salesforce® is a trademark of Salesforce® Inc. No claim is made to the exclusive right to use “Salesforce”. Any services offered within the Forcetalks website/app are not sponsored or endorsed by Salesforce®.

    Try AuditMyCRM - It is a Salesforce CRM Audit tool which comprehensively scans your Salesforce org and gives you the list of errors or warnings you need to take care of.
    We use cookies to enhance your browsing experience. Please see our privacy policy if you'd like more information on our use of cookies.