[SalesForce] lightning component visibility based on profile

I am pretty new to lightning so I wanted to know if there is a way to hide a lightning component based on certain conditions. I have a requirement where there are 4 components which need to be visible to users belonging to a particular profile and should not be accessible to others.

Thanks,

Best Answer

You can conditionally show/hide components on the page by setting the component visibility. Select your component and in the properties panel you have the flexibility to show/hide based on a field in the record or user level attributes. See below for clarity:

enter image description here

enter image description here