
Hi experts,
Can someone guide me how to restrict access to Lightning App for some users . For some users, instead of displaying the Lightning app, we'd like to display an error page .
We're invoking a Lightning app from a button on Opportunity Page.
A possible approach to above requirement we've tried is that in the Apex Controller, we're trying is to lookup for the user's profile, and if it matches against an allowed list of profiles, then render the Lightning App, otherwise render a visualforce error page. However, we are not able to implement this solution.
Any guidance appreciated !
Thanks in advance,
Steve
3 commentaires
Lightning pages can be assigned at the record type x profile level. Would it work to create variants of the page and situate the component on the appropriate variant assigned to users by profile? somewhat different approach but potentially declarative solution.