You need to sign in to do that
Don't have an account?
Abhishekh Jaiswal
How to enable the access of a lightning component to a specific user profile.
We have a lightning component and we are trying to render this to a specific user using the user's profile section in salesforce org.
Is there a possible way, so we can provide the access to a specific user?
There is no way to give access of components at profile level. What you can do is, you can give access to controllers of the lightning components at profile level. If a user does not have access to apex controllers then they will not be able to use lightning components. If this solves your concern, Kindly mark as best answer.
Regards,
Shiraz
Thanks for the response Shiraz Hoda,
Do you mean we have to enable the access of the Apex classes at the profile level, this would help us to control the lightning component access to a specific user.
Yes you will need to do this and also assign different layouts to different profiles and do not include the component in layout for specific profile if it is a quick action and if you do not want them to access it. Also, you can hide components in lightning app builder if you have directly added your component in lightning app builder. Please see below link for more info.
https://salesforce.stackexchange.com/questions/223696/lightning-component-visibility-based-on-profile
Hit a like if this solves your issue.
Regards,
Shiraz