SearchOrgWideObjectConfig defines the search-index configuration for an object in the org-wide search settings managed through Search Manager. It controls which fields participate in search and whether field-level security, which controls a user's access to individual fields, restricts matching on those fields.
This is an object-level search configuration, not an object definition or a replacement for field permissions. In particular, allowing search to match an inaccessible field is different from granting permission to view that field's value.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The component identity inherited from the base Metadata type. |
masterLabel |
Required. The name of the configuration. |
objectReference |
Required. The object's API name. It identifies the object whose fields this configuration controls and references CustomObject metadata. |
searchOrgWideFieldConfig |
A list of nested field configurations. One object-level component can contain settings for multiple fields. |
fieldReference |
Required within each field configuration. The field's API name, resolved within the object named by objectReference. It references CustomField metadata. |
isSearchable |
Boolean. true makes the field searchable, shown in search results, and used to match results. false marks the field as not searchable. |
isSecure |
Boolean. true permits matching on the field only for users who have permission to view it. false allows matching even when the user lacks that permission. |
Behavior and Constraints
Evaluate isSearchable and isSecure together within each searchOrgWideFieldConfig entry:
-
isSearchable=trueandisSecure=true: the field participates in search, but matching on that field is restricted to users who have permission to view it. -
isSearchable=trueandisSecure=false: the field can influence which records a user finds even when that user cannot view the field. -
isSearchable=false: the field is marked as not searchable. TheisSecuresetting does not itself make a field searchable.
isSecure controls permission checks for search matching. It is not a sensitivity classification and does not replace field permissions. Setting it to false does not grant permission to read the field's value.
There are no additional access requirements specific to this metadata type. That does not remove the runtime field-permission checks selected by isSecure.
SearchOrgWideFieldConfig is the contained field-configuration structure, not a separately identified metadata asset. Changes to one SearchOrgWideObjectConfig component can therefore change search behavior for several fields.
Deployment and Retrieval
Components are stored in the searchOrgWideConfiguration folder and use the .searchOrgWideObjectConfig suffix. Use SearchOrgWideObjectConfig as the metadata type name in package.xml.
Keep the component identity, configuration name, and target object distinct: fullName is inherited from Metadata, masterLabel names the configuration, and objectReference identifies the object by API name.
Field settings belong inside the object-level component. Resolve every fieldReference in the context of objectReference, rather than treating a field API name as globally unique. These references connect the search configuration to the corresponding object and field metadata; they do not establish a mandatory deployment sequence.
Relationships
The object reference supplies the context for all nested field references. A field name alone is not enough to identify the intended field across objects.
References
-
CustomObject:objectReference. -
CustomField:fieldReference, within eachsearchOrgWideFieldConfigentry.
Documentation Inconsistencies
The official manifest example uses <members>*</members> for SearchOrgWideObjectConfig. The same page also includes a warning that wildcards for feature settings apply when retrieving all settings, not an individual setting. It does not explain how that settings-specific warning applies to this type, leaving the scope of wildcard retrieval ambiguous.
Common Questions
Can search match a field that a user cannot view?
Yes. With isSearchable=true and isSecure=false, the search engine can match on the field even when the user lacks permission to view it. This does not grant access to the field's value.
How do I make search matching respect field-level security?
Set isSecure=true in the field's searchOrgWideFieldConfig entry. For a searchable field, matching on that field is then restricted to users who have permission to view it.
Is SearchOrgWideFieldConfig a separate metadata component?
No. It is a nested structure inside SearchOrgWideObjectConfig. A single object-level component can contain configurations for multiple fields.
Where are SearchOrgWideObjectConfig files stored?
They are stored in searchOrgWideConfiguration with the .searchOrgWideObjectConfig suffix. The manifest type name is SearchOrgWideObjectConfig.