in SF i created an sObject with custom fields. All users with admin permission can see all fields of this sObject. The user with the profile "Custom: Marketing Profile" should only see a few fields of this sObject but not all!
For this, i activated Field Level Security.
Security Controls > Field Accessibility > sObject > View by Fields > Select special Field > change Field Access to Hidden
If i logged in as an Custom: Marketing Profile user, i not see the Field in SF. As a admin i will see all fields.
Now i created an Lightning Component App and will show the field for the special users.
Unfortunately in LC my Custom: Marketing Profile will see all field of my sObject but i set the field access to hidden?! Why the Field Accessibilty not work in Lightning Component.
What should i do that LC only show the Fields which i selected in Field Accessibilty?
Best Answer
As per Standard Salesforce docs:
So you need to set it manually. You can find more details here