---
schema_version: "1"
id: 7e4f9b734f2219328f80cd479e201ac4fe06d13725f3c31820fba9e667e0a982
title: MobileSecurityAssignment
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_mobilesecurityassignment.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_mobilesecurityassignment.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 1e15d846ad7206c2b9530df074d2ca3d8ad80c9cd617a08a5359d25663ec4322
description: Represents the assignment of mobile app security policies to a profile. The policies apply to the Salesforce mobile app with Enhanced Mobile App Security enabled.
---
# MobileSecurityAssignment

Represents the assignment of mobile app security policies to a profile. The policies apply to the Salesforce mobile app with Enhanced Mobile App Security enabled.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

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.

## Parent Type

This type extends the [Metadata](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/metadata.htm "The base class for all metadata types. You can’t edit this object. A component is an instance of a metadata type.") metadata type and inherits its fullName field.

## File Suffix and Directory Location

MobileSecurityAssignment components have the suffix .mobileSecurityAssignment and are stored in the mobileSecurityAssignments folder.

## Version

MobileSecurityAssignment components are available in API version 54.0 and later.

## Special Access Rules

The Enhanced Mobile App Security add-on subscription and the Enforce Enhanced Mobile App Security user permission are required to use this metadata type.

## Fields

| Field Name | Description |
| --- | --- |
| connectedApplication | 
Field Type

string

Description

The name of the connected app that’s associated with the mobile security policies assignment.



 |
| isProtected | 

Field Type

boolean

Description

An auto-generated value that doesn’t impact the behavior of the metadata type. The default is false.



 |
| masterLabel | 

Field Type

string

Description

Required. A user-friendly name for MobileSecurityAssignment, which is defined when the MobileSecurityAssignment component is created.





 |
| profile | 

Field Type

string

Description

The profile that the mobile security policies are assigned to.



 |

## Declarative Metadata Sample Definition

The following is an example of a MobileSecurityAssignment component.

<?xml version="1.0" encoding="UTF-8"?>
<MobileSecurityAssignment xmlns="http://soap.sforce.com/2006/04/metadata">
    <connectedApplication\>MyMobileConnectedApp</connectedApplication\>
    <isProtected\>false</isProtected\>
    <masterLabel\>MyMobileSecurityAssignment</masterLabel\>
    <profile\>admin</profile\>
</MobileSecurityAssignment\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
    <types\>
        <members\>\*</members\>
        <name\>MobileSecurityAssignment</name\>
    </types\>
    <version\>61.0</version\>
</Package\>

## Wildcard Support in the Manifest File

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](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").