0

I have one lightning app "home.app" and i want to open this app after salesforce login for some specific profiles only. Can you please help in this?

Thanks.

1 Answer 1

4

Host home.app in a Lightning Out Visualforce page.

There is a lot of documentation on the web about how to do this. But for completeness, here is an actual VF page that you could use (after you change the name of the app and component):

<apex:page>
    <apex:includeLightning />
    <div id="lightning" />
    <script>
        $Lightning.use("c:YourLightningApp", function() {
          $Lightning.createComponent("c:YourLightningComponent",{},"lightning",function(cmp) {});
        });
    </script>
</apex:page>    

Put this Visualforce page on a Homepage that you assign only to certain profiles.

In Classic You can assign page layouts from:

  1. The object's customize page layout or record type page
  2. The original or enhanced profile user interface.

In Lightning:

  1. Lightning App Builder—From Setup, enter Lightning App Builder in the Quick Find box, then select Lightning App Builder. After you save a page, click Activate from the Page Saved dialog, or click Activation and select Assign this Home page to specific profiles.
  2. Home in Setup—From Setup, enter Home in the Quick Find box, then select Home. Click Set Page Assignments or click action list dropdown next to a profile and select Change Assignment.

Classic Link here Lightning Link here

You must log in to answer this question.

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