---
title: "Locking and unlocking Compliance fields (classic UI)"
slug: "locking-unlocking-compliance-fields"
description: "Classic UI: lock or unlock Compliance fields for one user, with a CSV upload, or for directory fields, and how locked fields win in the field priority order."
updated: 2024-01-10T22:46:27.000Z
canonical: "https://help.opensense.com/docs/locking-unlocking-compliance-fields"
---

> ## Documentation Index
> Fetch the complete documentation index at: https://help.opensense.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Locking and unlocking Compliance fields (classic UI)

:::note[Classic UI]
This article covers the classic Opensense UI. In the New UI, user profiles are under **Manage** > **Users**.
:::

## Overview

By default, Opensense fields are unlocked. You can lock a field in three ways:

- [For an individual user](#lockedunlocked-for-an-individual-user)
- [With a CSV upload](#lockedunlocked-when-using-csv-to-upload-users)
- [During a directory sync](#lockedunlocked-directory-fields)


## Why locking matters: field priority

When an email is sent, Opensense fills in the signature fields in this priority order:

1. Locked fields in Compliance
2. Data from the user's signature block
3. Unlocked fields in Compliance

So a locked field always wins over what the user typed in their signature block. For a worked example, see [Field data priority](https://help.opensense.com/docs/field-data-priority).


## Locking or unlocking fields for one user

1. Sign in to the Opensense platform.
2. In the **Signatures** menu, select **Compliance**.
3. Find the user, by searching for their email in the search bar on the left.
4. On the user's Compliance profile, select **Edit Profile Fields**.

   ![A user's Compliance profile, with the user found in the search panel and the Edit Profile Fields button highlighted](https://help.opensense.com/media/lockunlock1-810f9e9c725f.png)

5. Select **+ Field**.
6. Select the blue lock icons to lock or unlock the fields you want, and then select the green **Save** button to save all changes.

   <img src="https://help.opensense.com/media/lockunlock2-21a1563baf15.png" alt="Profile fields in edit mode, with a lock button for each field and the Save button highlighted" width="422" height="295" loading="lazy" decoding="async">


## Locking or unlocking fields with a CSV upload

1. Open the CSV file you use for the Opensense platform.
2. Type `-locked` after the field name to lock it, or `-unlocked` to unlock it. For example: `name-locked` or `name-unlocked`.
3. Save the file as a .csv, and use it as your new CSV when you sync the Opensense signature.

:::note[Unlocked by default]
Fields are **unlocked** by default. If you upload a CSV without a locking specification, the fields upload as unlocked.
:::

For the other CSV commands, see [Editing users in bulk in Users & Compliance (classic UI)](https://help.opensense.com/docs/bulk-edits-in-users-compliance#csv-commands-for-bulk-changes).


## Locking or unlocking directory fields

To lock fields that are mapped in from your directory, contact [help@opensense.com](mailto:help@opensense.com), and tell us which fields should be locked or unlocked.

## What's next

- [Field data priority](https://help.opensense.com/docs/field-data-priority)
- [Choosing how to edit user data](https://help.opensense.com/docs/editing-user-data-guide)
