Newer Version Available
EmployeeUserSettings
Represents the employee-user settings used for
automatically creating or syncing employee and user data in work.com orgs.
This type extends the Metadata metadata type and inherits its fullName field.
File Suffix and Directory Location
A EmployeeUserSettings component file has the suffix .settings and is stored in the settings directory. The .settings files are different from other named components because there’s only one settings file for each settings component.
Version
EmployeeUserSettings components are available in API version 50.0 and later.
Special Access Rules
Access to the EmployeeUserSettings type requires the Workplace Command Center permission set license available in the org and assigned to the user. The WorkplaceCommandCenterUser scratch org feature must also be enabled in the org.
Fields
Declarative Metadata Sample Definition
The following is an example EmployeeUser.settings-meta.xml that deploys the EmployeeUserSettings metadata to
an org. The file is in the dir path force-app/main/default/settings:
1<?xml version="1.0" encoding="UTF-8"?>
2<EmployeeUserSettings xmlns="http://soap.sforce.com/2006/04/metadata">
3<emailEncoding>ISO-8859-1</emailEncoding>
4<enableEmployeeAutoCreateUser>true</enableEmployeeAutoCreateUser>
5<enableEmployeeIsSourceOfTruth>false</enableEmployeeIsSourceOfTruth>
6<profile>MarketingProfile</profile>
7<usernameSuffix>example.com</usernameSuffix>
8</EmployeeUserSettings>The following example of package.xml file retrieves the
EmployeeUserSettings
metadata:
1<?xml version="1.0" encoding="UTF-8"?>
2<Package xmlns="http://soap.sforce.com/2006/04/metadata">
3<types>
4<name>Settings</name>
5<members>EmployeeUser</members>
6</types>
7<version>50.0</version>
8</Package>