Settings represents organization-level configuration for Salesforce features. It is the Metadata API manifest type used to select feature-specific components such as SecuritySettings, FlowSettings, and AccountSettings. A manifest is the package.xml file that selects metadata for retrieval or deployment. Each settings component has its own configuration structure; Settings is not one shared schema containing every feature's fields.
Do not confuse Settings with OrgSettings. The latter is one specific component for org-wide functionality that is not associated with a particular feature. Selecting that component does not select all organization settings.
Key Elements
The first two entries below are manifest elements. The remaining entries are feature components selected through the manifest, not fields on Settings.
| Element | What the Element Controls |
|---|---|
name |
Use Settings as the manifest type name. |
members |
Selects a feature using its component metadata type name without the trailing Settings suffix. For example, use Security for SecuritySettings. Use * to request all available Settings metadata. |
SecuritySettings |
Trusted IP ranges for network access, password and login requirements, session expiration, and single sign-on settings. Manifest member: Security. |
SharingSettings |
Organization sharing, visibility, and data access settings. Manifest member: Sharing. |
OauthOidcSettings |
Settings for disabling OAuth and OpenID Connect authorization flows. Manifest member: OauthOidc. |
FlowSettings |
Process and flow behavior, including whether Lightning runtime for flows is enabled. Manifest member: Flow. |
DeploymentSettings |
Settings that affect how deployments behave in the organization. Manifest member: Deployment. |
AddressSettings |
Country/territory and state picklist configuration, including data used when converting text-based address values to standard picklist values. Manifest member: Address. |
LeadConvertSettings |
Custom field mappings from Leads to Accounts, Contacts, and Opportunities, plus options for creating opportunities during lead conversion. Manifest member: LeadConvert. |
AccountSettings |
Account teams, the account owner report, and the View Hierarchy link. Manifest member: Account. |
OrgSettings |
Org-wide functionality not associated with a specific feature. Manifest member: Org. |
UserInterfaceSettings |
Settings that modify the behavior of the organization's user interface. Manifest member: UserInterface. |
Behavior and Constraints
The selected component determines the effect of a change. Authentication settings, sharing settings, flow runtime settings, and lead conversion mappings do not share a universal configuration model merely because the manifest selects them through Settings. Their fields and operational meaning belong to the individual feature components.
A component's presence identifies configuration for a feature; it does not by itself establish that the feature is enabled. For example, the presence of a FlowSettings component is not a substitute for checking its configuration values.
Metadata API coverage is incomplete. Not all feature settings are available through the Metadata API. A wildcard request selects all available Settings metadata, not every choice in Setup and not all organization configuration.
Organization-level security configuration also may not establish a user's effective policy. A 2022 community report identifies profile-level session settings as possible overrides of the session timeout default in SecuritySettings. For that diagnosis, inspect ProfileSessionSetting as well as the org-level timeout. This is a policy interaction, not a field shared by the two types.
Deployment and Retrieval
Use Settings in the manifest's name element and remove only the trailing Settings suffix from the feature component's type name to form its member. For security configuration, the manifest entry is:
<types><members>Security</members><name>Settings</name></types>
The same selection rule applies to deployment and retrieval:
-
SecurityselectsSecuritySettings. -
MobileselectsMobileSettings. -
OrgselectsOrgSettings.
Each settings component is stored in its own file in the package's settings directory. In Metadata API format, the security component is Security.settings. Selecting the Security member selects that feature's configuration, not every settings file.
To request all available Settings metadata, use:
<types><members>*</members><name>Settings</name></types>
The wildcard broadens the component selection but does not expand Metadata API coverage. A successful wildcard retrieval therefore must not be interpreted as a complete export of Setup.
Relationships
The relationship between Settings and its feature components is manifest selection based on component names. For example, Security selects SecuritySettings, while Org selects OrgSettings. These selections are not XML element references between metadata assets.
For session-timeout analysis, ProfileSessionSetting is separate policy metadata to inspect alongside SecuritySettings. The security settings definition describes the org-level component, and the profile session setting definition covers the profile-level type.
Reported Issues
-
An org-level timeout export may not explain a user's timeout. A 2022 answer reports that profile-level session settings can override the default in
SecuritySettingsand identifiesProfileSessionSettingas the metadata to inspect for those overrides. See the session timeout discussion. - A scratch-org settings failure may occur after the org itself has been created. In 2021, a user reported that scratch orgs existed despite the settings-deployment failure, but had not been linked to the local development project. The report distinguishes org creation from successful settings provisioning. See the scratch-org provisioning report.
- An OAuth authentication failure may involve an org-level flow setting, not only credentials or connected-app configuration. In 2023, a user troubleshooting the OAuth username-password flow reported that the "Allow OAuth Username-Password Flows" setting needed to be enabled. This is a reported cause under that authentication method, not a general recommendation to enable the flow. See the OAuth flow setting report.
Common Questions
What member name retrieves SecuritySettings in package.xml?
Use <members>Security</members> with <name>Settings</name>. The member is the component metadata type name without its trailing Settings suffix.
Does a Settings wildcard retrieve every Salesforce Setup setting?
No. * requests all available Settings metadata, but not all feature settings are exposed through the Metadata API. It is not a complete export of Setup or all organization configuration.
Are Settings and OrgSettings the same metadata type?
No. Settings is the manifest type used to select feature components. OrgSettings is one component for org-wide functionality not associated with a particular feature, selected with the member Org.
Why does a user's session timeout differ from SecuritySettings?
A 2022 community report identifies profile-level session settings as possible overrides of the org-level default. Inspect ProfileSessionSetting alongside SecuritySettings when diagnosing that difference.