According to this documentation, Permission Sets are defining the Field Level Security. But I'm experiencing odd behavior. I'm not having access to a field, that I should be able to edit, according to the Permission Set.
But It will be available if I set the FLS to Visible
on the field it self.
This outputs the fields that I have access to:
for(SObjectField field : SObjectType.Account.fields.getMap().values()) {
System.debug(LoggingLevel.ERROR, field);
}
What am I missing? Permission Sets seem kind of useless here, cause if I set the FLS to Visible
, every user with that profile has access. If it's hidden no one does, and the Permission Set can't override it.
Edit: Adding the field on the Profile did also make it available (without having it visible at FLS).