PresenceUserConfig defines the Omni-Channel presence configuration applied to agents through user or profile assignments. It controls workload capacity, automatic acceptance and agent declines, automatic presence-status changes, and After Conversation Work (ACW) timing. This metadata type is available only when Omni-Channel is enabled in the org.
The metadata component is distinct from the similarly named PresenceUserConfig sObject, a record exposed through Salesforce data APIs. An Apex data manipulation language (DML) error on that sObject does not establish a restriction on deploying the metadata component.
Key Elements
| Element | What the Element Controls |
|---|---|
capacity |
Required integer. The maximum work units an agent can be assigned simultaneously, not necessarily the number of work items. |
interruptibleCapacity |
The maximum interruptible work units that can be pushed to an agent when the Interruptible Capacity feature is enabled. An empty value defaults to capacity. |
assignments |
Contains profile and user assignments. Nested profiles.profile values are profile names; users.user values are usernames. |
enableAutoAccept |
Whether routed work is accepted automatically. Available only when enableDecline is false. |
enableDecline |
Whether agents can decline routed work. Available only when enableAutoAccept is false. |
enableDeclineReason |
Whether agents can select a decline reason. Requires decline reasons to be enabled. |
declineReasons |
Identifies the available PresenceDeclineReason components for agents declining work. |
presenceStatusOnDecline |
References the ServicePresenceStatus automatically assigned after a decline. Available only when enableDecline is true. |
presenceStatusOnPushTimeout |
References the ServicePresenceStatus automatically assigned when an agent does not respond before push timeout. |
hasAfterConvoWorkTimer |
Enables the ACW timer. Defaults to false. When true, requires afterConvoWorkMaxTime. |
afterConvoWorkMaxTime |
Integer defining the maximum ACW time, from 10 through 3600 seconds. |
hasAcwExtensionEnabled |
Allows agents to extend ACW time. Defaults to false. Requires hasAfterConvoWorkTimer=true, acwExtensionDuration, and maxExtensions. |
acwExtensionDuration |
Integer defining the maximum time for each ACW extension, from 10 through 3600 seconds. |
maxExtensions |
The maximum number of ACW extensions, from 1 through 10. Serialized as a string despite its restricted numeric values. |
Behavior and Constraints
Capacity and acceptance
Interpret capacity as a work-unit limit. A value of 5 means five work units, not necessarily five work items. When Interruptible Capacity is enabled, interruptibleCapacity sets the limit for work using interruptible capacity. Leaving it empty uses the value of capacity.
enableAutoAccept and enableDecline are mutually exclusive. Enabling automatic acceptance rules out agent-controlled declines through this configuration. Neither field's availability means that the other must be enabled.
Declines and automatic status changes
Decline handling combines several settings. enableDecline permits declines, enableDeclineReason permits reason selection when decline reasons are enabled, and declineReasons identifies the available reasons.
presenceStatusOnDecline changes the agent's status automatically after a decline and is available only when declines are enabled. presenceStatusOnPushTimeout independently changes the agent's status when the agent does not respond before push timeout. These fields define automatic transitions, not merely status labels displayed to the agent.
After Conversation Work
ACW timing has two levels of enablement. To enable the timer, set hasAfterConvoWorkTimer to true and supply afterConvoWorkMaxTime from 10 through 3600 seconds.
To allow extensions, also set hasAcwExtensionEnabled to true, supply acwExtensionDuration from 10 through 3600 seconds, and supply maxExtensions from 1 through 10. Although maxExtensions is a string, arbitrary text is not a documented value. Treat the enablement flags and their required limits as coordinated settings.
The configuration also controls sounds: enableRequestSound governs incoming-work sounds and defaults to true; enableDisconnectSound governs sounds when agents disconnect from Omni-Channel.
Deployment and Retrieval
Metadata API files use the .presenceUserConfig suffix and reside in the presenceUserConfigs directory. The component inherits fullName from Metadata. In package.xml, use the type name PresenceUserConfig; the manifest supports * as a wildcard member.
The destination org must have Omni-Channel enabled. Configuration values must also satisfy their feature and field dependencies: interruptible capacity requires its feature, automatic acceptance cannot be combined with declines, and enabled ACW timers or extensions require their corresponding limits.
Assignments travel inside the configuration. PresenceConfigAssignments, PresenceConfigProfileAssignments, and PresenceConfigUserAssignments are contained structures, not separate deployable metadata components.
For cross-org deployment, account for destination profile names and usernames. Within assignments.profiles, profile identifies a profile by name. Within assignments.users, user identifies a user by username, not by record ID.
Populated decline-reason and automatic-status references determine the configuration's related component dependencies. Account for the referenced PresenceDeclineReason and ServicePresenceStatus components rather than assuming that every presence configuration uses the same dependencies.
Keep metadata operations separate from data API operations when diagnosing programmatic administration failures. Reported Apex DML failures on configuration or assignment records concern those sObject operations, not a prohibition on deploying PresenceUserConfig metadata.
Relationships
The configuration references profiles for assignments, decline reasons for agent choices, and presence statuses for automatic transitions. User assignments identify user accounts by username. Only populated references establish dependencies for a particular configuration.
References
-
PresenceDeclineReason:declineReasons. -
Profile:profile, nested withinassignments.profiles. -
ServicePresenceStatus:presenceStatusOnDecline,presenceStatusOnPushTimeout.
Reported Issues
-
Apex updates can fail even when a data API operation is available. In an October 2021 report, an attempt to change capacity on the
PresenceUserConfigsObject through Apex DML produced errors. The response recommended SOAP or REST for programmatic changes. This concerns the sObject API, not metadata deployment. See the capacity update discussion. -
Assignment automation can require a different API or automation path. A 2021 discussion reported Apex insert failures on
PresenceUserConfigUserassignment records. Responses reported success using Flow in 2021 and composite REST in 2023. These are conditional reports about assignment records, not additional metadata elements or lifecycle rules forPresenceUserConfig. See the assignment insert discussion.
Common Questions
Does PresenceUserConfig capacity count work items?
Not necessarily. capacity limits work units. When Interruptible Capacity is enabled, interruptibleCapacity controls the interruptible work-unit limit and defaults to capacity if empty.
Can I enable both automatic acceptance and agent declines?
No. enableAutoAccept is available only when enableDecline is false, and enableDecline is available only when enableAutoAccept is false.
Which fields are required to enable ACW timer extensions?
Set hasAfterConvoWorkTimer=true and provide afterConvoWorkMaxTime. Then set hasAcwExtensionEnabled=true and provide both acwExtensionDuration and maxExtensions. Both time limits accept 10 through 3600 seconds; the extension count accepts 1 through 10.
Do presence configuration user assignments use usernames or record IDs?
The metadata uses usernames in assignments.users.user. Profile assignments use profile names in assignments.profiles.profile. Both structures are deployed inside the presence configuration.
Does an Apex DML error mean PresenceUserConfig metadata cannot be deployed?
No. The reported DML errors concern the similarly named sObject and assignment records. Community responses recommended SOAP or REST for configuration changes and reported Flow or composite REST success for assignment inserts. Those reports do not establish a metadata deployment restriction.