Field-level security to control access


Getting to app feature settings can vary based on the type of app (Unified Interface or the legacy web client) you're using. You might need to adjust the procedural steps in this topic to reflect your app type. See Settings.

Also, we are moving some settings from model-driven apps in Dynamics 365, such as Dynamics 365 Sales and Customer Service, and the Dynamics 365 Admin center to the Power Platform Admin center. See Environment settings are moving.

Record-level permissions are granted at the entity level, but you may have certain fields associated with an entity that contain data that is more sensitive than the other fields. For these situations, you use field-level security to control access to specific fields.

The scope of field-level security is organization-wide and applies to all data access requests including the following:

  • Data access requests from within a client application, such as web browser, mobile client, or Microsoft Dynamics 365 for Outlook.

  • Web service calls using the Dynamics 365 Customer Engagement Web Services (for use in plug-ins, custom workflow activities, and custom code)

  • Reporting (using Filtered Views)

Overview of field-level security

Field-level security is available for the default fields on most out-of-box entities, custom fields, and custom fields on custom entities. Field-level security is managed by the security profiles. To implement field-level security, a system administrator performs the following tasks.

  1. Enable field security on one or more fields for a given entity.

  2. Associate one more existing security profiles, or create one or more new security profiles to grant the appropriate access to specific users or teams.

A security profile determines the following:

  • Permissions to the secure fields

  • Users and Teams

    A security profile can be configured to grant user or team members the following permissions at the field level:

  • Read. Read-only access to the field’s data.

  • Create. Users or teams in this profile can add data to this field when creating a record.

  • Update. Users or teams in this profile can update the field’s data after it has been created.

A combination of these three permissions can be configured to determine the user privileges for a specific data field.


Unless one or more security profiles are assigned to a security enabled field, only users with the system administrator security role will have access to the field.

Example for restricting the mobile phone field for the Contact entity

Imagine your company’s policy is that sales members should have different levels of access to contact mobile phone numbers as described here.

User or Team Access
Vice presidents Full. Can create, update, and view mobile phone numbers for contacts.
Sales Managers Read-only. Can only view mobile phone numbers for contacts.
Salespersons and all other users None. Cannot create, update or view mobile phone numbers for contacts.

To restrict this field, you would perform the following tasks.

Secure the field.

  1. Go to Settings > Customizations.

  2. Click Customize the System.

  3. Click Entities > Contact > Fields.

  4. Click mobilephone, click Edit.

  5. Next to Field Security, click Enable, click Save and Close.

  6. Publish the customization.

Configure the security profiles.

  1. Create the field security profile for sales managers.

    1. Go to Settings > Security.

    2. Click Field Security Profiles.

    3. Click New, enter a name, such as Sales Manager access contact mobile phone, and click Save.

    4. Click Users, click Add, select the users that you want to grant read access to the mobile phone number on the contact form, and then click Add.


      Instead of adding each user, create one or more teams that include all users that you want to grant read access.

    5. Click Field Permissions, click mobilephone, click Edit, select Yes next to Allow Read, and then click OK.

  2. Create the field security profiles for vice presidents.

    1. Click New, enter a name, such as VP access contact mobile phone, and click Save.

    2. Click Users, click Add, select the users that you want to grant full access to the mobile phone number on the contact form, and then click Add.

    3. Click Field Permissions, click mobilephone, click Edit, select Yes next to Allow Read, Allow Update, and Allow Create, and then click OK.

  3. Click Save and Close.

Any users not defined in the previously created field security profiles will not have access to the mobile phone field on contact forms or views. The field value displays Lock icon ********, indicating that the field is secured.

Which fields can be secured?

Every field in the system contains a setting for whether field security is allowed. You can view this in the field definition from Solution Explorer. In Solution Explorer expand Entities, expand the entity that you want, select Fields, and then open the field that you want. If Enable can be selected, the field can be enabled for field security.

Although most attributes can be secured, there are system attributes, such as IDs, timestamps, and record tracking attributes, that can't. Below are a few examples of attributes that can't be enabled for field security.

  • ownerid, processid, stageid, accountid, contactid
  • createdby, modifiedby, OwningTeam, OwningUser
  • createdon, EntityImage_Timestamp, modifiedon, OnHoldTime, overriddencreatedon
  • statecode, statuscode

You can view the entity metadata for your organization including which fields can be enabled for field security, by installing the Metadata Browser solution described in Browse the Metadata for Your Organization. You can also view the metadata for an uncustomized organization in the Office Excel file called EntityMetadata.xlsx included in the top-level folder of the SDK. Download the SDK

Best practices when you use field security

When you use calculated fields that include a field that is secured, data may be displayed in the calculated field to users that don’t have permission to the secured field. In this situation, both the original field and the calculated field should be secured.

Some data, such as addresses, are actually made up of multiple fields. Therefore, to completely secure data that includes multiple fields, such as addresses, you must secure and configure the appropriate field security profiles on multiple fields for the entity. For example, to completely secure addresses for an entity, secure all relevant address fields, such as address_line1, address_line2, address_line3, address1_city, address1_composite, and so on.

See also

Video: Field Level Security in Microsoft Dynamics CRM 2015
Create a field security profile
Add or remove security from a field
Hierarchy security