function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kajal rathodkajal rathod 

Component permission set

Hi All,
I just started working on Lightning and i am stuck at this point --'can we apply permission set on Lightning component or How we can restrict one component for one particular user' 
Best Answer chosen by kajal rathod
SandhyaSandhya (Salesforce Developers) 
Hi,

You may check for user profile and restrict to render.
Refer below link that may help you.

https://salesforce.stackexchange.com/questions/132371/hide-lightning-component-from-community-guest-user

If this helps you, mark it as solved so that it will be available for others.

Best Regards,
Sandhya

All Answers

SandhyaSandhya (Salesforce Developers) 
Hi,

You may check for user profile and restrict to render.
Refer below link that may help you.

https://salesforce.stackexchange.com/questions/132371/hide-lightning-component-from-community-guest-user

If this helps you, mark it as solved so that it will be available for others.

Best Regards,
Sandhya
This was selected as the best answer
Abhishek AnandAbhishek Anand
you can use lightning component rendering based on a condition in the Set Component Visibility of lightning page itself