MobileSecurityPolicy
Represents a mobile app security policy on the Salesforce mobile app with Enhanced Mobile App Security enabled. For a full description of each policy, see Enable and Configure Mobile App Security Policies.
Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.
This type extends Metadata and inherits its fields.
MobileSecurityPolicy components have the suffix .mobileSecurityPolicy and are stored in the mobileSecurityPolicies folder.
Introduced in API version 53.0.
The Enhanced Mobile App Security add-on subscription and the Enforce Enhanced Mobile App Security user permission are required to use this metadata type.
- Type: dateTime
- Required: No
- Description: The date that a mobile security policy is enforced.
- Type: boolean
- Required: Yes
- Description: Required. Indicates whether the mobile security policy is enabled. The default value is
false, which means that the policy is disabled.
- Type: boolean
- Required: No
- Description: An auto-generated value that doesn’t impact the behavior of the metadata type. The default value is
false.
- Type: string
- Required: Yes
- Description: Required. A user-friendly name for MobileSecurityPolicy, which is defined when the MobileSecurityPolicy component is created.
-
Type: MobileSecurityMobilePlatform (enumeration of type string)
-
Required: No
-
Description: The mobile operating system of the mobile security policy.
Values are:
-
Possible values:
- Android
- iOS
- Type: string
- Required: No
- Description: The name of the mobile security assignment associated with the mobile security policy. See MobileSecurityAssignment.
- Type: string
- Required: Yes
- Description: Required. The value of the mobile security policy rule.
-
Type: MobileSecurityPolicyRuleValueType (enumeration of type string)
-
Required: Yes
-
Description: Required. The type of mobile security policy rule.
Values are:
-
Possible values:
- Boolean
- Text
- TextList
-
Type: MobileSecurityPolicySeverityLevel (enumeration of type string)
-
Required: Yes
-
Description: Required. The severity level of a mobile security policy.
Values are:
-
Possible values:
- Critical — Wipes app data and logs user out
- Error — Blocks access to the app until the issue is resolved, but doesn’t log user out
- Info — Blocks prohibited action or logs user action and informs user
- Warn — Notifies the user of the violation and recommends how to resolve, but user is able to continue using the app
-
Type: MobileSecurityPolicyType (enumeration of type string)
-
Required: Yes
-
Description: Required. The type of mobile security policy.
Values are:
-
Possible values:
- AllowedDeviceList
- Block3dTouch
- BlockCalendar
- BlockCamera
- BlockContacts
- BlockCustomKeyboard
- BlockFileBackup
- BlockMicrophone
- BlockOsSharing
- BlockedDeviceList
- BrowserUriScheme
- CheckBiometric
- DevicePasscode
- DisableUrlCaching
- JailbrokenDevice
- LogCertPin
- LogEmail
- LogPhonecall
- LogPolicyResult
- LogScreenshot
- LogTextmessage
- LogoutAfterRestart
- LogoutOnBiometricChange
- MalwareDetection
- ManInMiddle
- MaxOffline
- MaximumAppVersion
- MaximumOsVersion
- MinimumAppVersion
- MinimumOsVersion
- MinimumSecurityPatchVersion
- MininumAppVersion
- PhonecallUriScheme
- Screenshot
The following is an example of a MobileSecurityPolicy component.
The following is an example package.xml that references the previous definition.
This metadata type supports the wildcard character * (asterisk) in the package.xml manifest file. For information about using the manifest file, see Deploying and Retrieving Metadata with the Zip File.