Get Field Level Security (Audit)
sf_get_field_permissionsAudit field-level security by retrieving which profiles and permission sets can view or edit a field, helping you assess access before modifying permissions.
Instructions
Reads the current field-level security grants for a field across all Profiles and Permission Sets that reference it, via the FieldPermissions query object. Use to audit who can currently see or edit a field before changing access, or to answer "which profiles can edit this field?". Complements sf_create_field_level_security, which sets grants but doesn't report the current state.
objectName: object API name, e.g. 'Account' fieldName: field API name, e.g. 'Revenue__c'
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fieldName | Yes | Field API name, e.g. 'Revenue__c' (without the object prefix) | |
| objectName | Yes | Object API name, e.g. 'Account' |