UserProvisioningConfig configures user provisioning for a connected app: which user changes generate provisioning requests, whether approval is required, and how Salesforce users are linked to accounts in a third-party system. It supplies settings to a user provisioning flow. It is not an individual provisioning request and does not implement the external integration itself.
Key Elements
| Element | What the Element Controls |
|---|---|
enabled |
Boolean switch that enables or disables user provisioning for the associated connected app. The documented default is false. |
enabledOperations |
Comma-separated string of operations that generate provisioning requests. Allowed values are Create, Update, EnableAndDisable for activation and deactivation, and SuspendAndRestore for freeze and unfreeze. |
onUpdateAttributes |
Comma-separated string of user attributes whose updates generate provisioning requests. Interpret this selection together with Update in enabledOperations. |
approvalRequired |
String indicating whether provisioning requires approval for the associated app. A null value means no approval is required. This element is not a Boolean. |
connectedApp |
The Salesforce ID of the connected app for which users are provisioned. It is an association to the app, not the metadata identity of this configuration. |
flow |
References a user provisioning flow that includes a reference to the Apex UserProvisioningPlugin class. The flow calls the third-party API to manage accounts. |
namedCredential |
The Salesforce ID of the named credential used for requests. The credential identifies the third-party system and its authentication settings. |
userAccountMapping |
String containing JSON that describes the attributes used to link a Salesforce user to a third-party account. |
reconFilter |
Limits which users the plug-in collects and analyzes on the third-party system during reconciliation, the process of comparing accounts between systems. |
Behavior and Constraints
Read the request-selection settings together. enabled switches provisioning on or off, enabledOperations selects the operations that generate requests, and onUpdateAttributes selects the user attributes that generate update requests. Enabling Update is not an unrestricted instruction to provision after every user-field change. When an expected update does not generate a request, inspect both the operation selection and the attribute selection.
Request generation, approval, and execution are separate. approvalRequired controls the approval requirement; null means no approval is required. The referenced flow and its Apex plug-in provide the execution behavior, including calls to the third-party API. The named credential supplies the external system and authentication settings.
Account linkage is not update selection. userAccountMapping identifies corresponding accounts. For example, {"linkingSalesforceUserAttribute":"Username","linkingTargetUserAttribute":"Email"} links the Salesforce Username attribute to the target system's Email attribute. These attribute choices are examples, not required defaults. They do not replace onUpdateAttributes, which selects changes that generate update requests.
Reconciliation scope is separate from account matching. reconFilter restricts the users collected and analyzed on the third-party system. When investigating incomplete reconciliation results, inspect that collection scope separately from the linkage mapping and update-trigger attributes.
notes holds internal administrator commentary and is not used by any process. masterLabel is the configuration's internal, untranslated label; it is distinct from the inherited fullName metadata identity.
Deployment and Retrieval
UserProvisioningConfig components use the .userProvisioningConfig suffix and are stored in the UserProvisioningConfigs directory. In package.xml, use UserProvisioningConfig as the type name and the component's metadata name as the member. The type supports the * wildcard in the manifest.
The configuration inherits fullName from the base Metadata type. Keep that component identity separate from connectedApp and namedCredential: both association elements are documented as Salesforce IDs. When planning a cross-org deployment, do not assume that they accept developer names or that matching component names establish the correct ID-valued associations.
The configuration connects the app, flow, and credential, but does not contain the integration implementation. Deploying the configuration alone does not supply the flow's third-party API behavior or its Apex plug-in. Evaluate those execution and authentication dependencies separately from the request-selection settings.
For serialized values, use the documented comma-separated operation and attribute lists and the JSON format for userAccountMapping. The published XML example contains conflicting placeholders, described below; those placeholders do not establish additional supported formats or reference semantics.
Relationships
The configuration associates a connected app with a user provisioning flow and a named credential. The flow, in turn, references the Apex UserProvisioningPlugin class that participates in external account management. That plug-in relationship belongs to the flow rather than to a direct element on this configuration.
References
-
ConnectedApp:connectedApp -
Flow:flow -
NamedCredential:namedCredential
Documentation Inconsistencies
The published XML sample conflicts with three field definitions:
-
enabledOperationscontainsNA, which is not among the documented allowed values. The sample does not establish an additional supported operation. -
connectedAppcontains the name-like valueExampleApp, although the field is defined as a Salesforce ID. The sample does not establish developer-name reference semantics. -
userAccountMappingcontains the plain placeholdermapping, although the field is defined as JSON. The sample does not establish an alternative mapping format.
Common Questions
Where are UserProvisioningConfig files stored, and can I retrieve them with a wildcard?
They are stored in UserProvisioningConfigs with the .userProvisioningConfig suffix. The UserProvisioningConfig manifest type supports * for wildcard retrieval.
Why doesn't a user-field update generate a provisioning request?
Check enabled, whether enabledOperations includes Update, and whether onUpdateAttributes includes the changed attribute. Update-driven provisioning uses the selected attributes rather than every user-field change.
Is approvalRequired a Boolean field?
No. approvalRequired is a string, and null means no approval is required. It controls approval separately from the Boolean enabled switch.
Can connectedApp and namedCredential contain developer names?
Both fields are documented as Salesforce IDs. Do not infer developer-name support from the name-like ExampleApp value in the published XML sample. These associations are separate from the configuration's fullName.
What is the difference between userAccountMapping, onUpdateAttributes, and reconFilter?
userAccountMapping links Salesforce users to third-party accounts. onUpdateAttributes selects user-attribute changes that generate update requests. reconFilter limits which third-party users the plug-in collects and analyzes during reconciliation.