Can an user be given login as another user privileges without giving 'View Setup and Configuration' permission and 'Modify All Permission'?

As the need is to do testing in sales force logging in with different profiles without having access to the object, fields and other metadatas and configuration in the org.

1 Answer 1


You need at least View Setup & Configuration, as there's no "Login" option from anywhere other than the setup screens. You don't need Modify All Data if you're a Delegated Administrator (which also requires View Setup & Configuration). There's little reason to restrict access to View Setup & Configuration, as there's not much you can do without additional permissions.

  • The user will have view access to all the apex classes and pages and i don't want the user to access it. Is there any way to avoid it? Nov 15, 2018 at 7:34
  • 1
    @MoyeetriPattanaik View Setup & Configuration is required because otherwise you can't see users to login as.
    – sfdcfox
    Nov 15, 2018 at 7:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .