---
schema_version: "1"
id: 4c6241265e626c329c5db535fe95f8c1dfb7f05bea58ebc5514696817ed4963d
title: Restrict Visibility for Imported Data in the Archive App
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/archive_import_restrict_data_visibility.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.archive_import_restrict_data_visibility.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 4e03456a9e843c01906112e4a95b0df51bfc4d1a844b584e5d2919d360dddce9
description: Secure sensitive archived records by manually enabling Archive Component Restriction Rules and uploading custom sharing entries for specific objects. This configuration prevents unauthorized users from accessing imported data in the Archive component while maintaining visibility for record owners.
products:
  - Salesforce Platform
  - Cross Cloud
release: "264"
---
# Restrict Visibility for Imported Data in the Archive App

Secure sensitive archived records by manually enabling Archive Component Restriction Rules and uploading custom sharing entries for specific objects. This configuration prevents unauthorized users from accessing imported data in the Archive component while maintaining visibility for record owners.

Transitioning the component from its default open-access state to a restricted model based on your defined Salesforce IDs and access levels ensures data privacy.

![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-setup-264-0-0-production-enus/6f21df35-9ea0-4f53-ac94-45c3b5dfd5bc/images/icon_note.png)

Note To maintain visibility for the original record owner, include the owner's Salesforce ID in your share import file.

Important Considerations

- Salesforce admins with the Archive Override Widget Restriction Rule permission set can always see all records, regardless of the share table status.
- When creating your CSV, the `RowCause` field requires a value of `Manual` or `Owner`.

Before you import your data, complete these tasks.

- Set the Salesforce Organization-Wide Default for the object to `Private`.
- Turn off Exclude Share Objects in Archive Settings.
- Configure the Restriction Rule in Archive Settings.

## Phase 1: Turn on Restriction Rules

Configure the Archive component to recognize sharing requirements for your specific object.

1. Go to Archive Component Restriction Rules under Search in Archive Settings.
2. Click **Add Object**.
3. Select the Share Object associated with your data, such as CaseShare.
4. Click **Submit All**.
5. Click **Confirm**.
    
    The status changes to Active.
    
    ![Note](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-setup-264-0-0-production-enus/6f21df35-9ea0-4f53-ac94-45c3b5dfd5bc/images/icon_note.png)
    
    Note This process can take up to 30 minutes. You can continue working while the rule activates.

## Phase 2: Import Records and Sharing Logic

Import your primary records and their corresponding sharing entries together to restrict visibility upon upload.

1. Define and save your record IDs.
    
    ![Important](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-setup-264-0-0-production-enus/6f21df35-9ea0-4f53-ac94-45c3b5dfd5bc/images/icon_important.png)
    
    Important Unlike standard Salesforce inserts, Archive doesn't generate these IDs for you. Define the record IDs in your import file and retain a mapping of them to link.
2. Create import files for both the primary object, such as Cases, and the Share Object, such as CaseShare.
3. Make sure that the Share Object data includes these mandatory fields.
    
    - Parent ID: The unique ID that you defined for the archived record.
    - User or Group ID: The Salesforce ID of the user, role, or public group receiving access.
    - Access Level: The permission level, typically Read.
4. Upload the Share CSV file by using the import tool.

## Phase 3: Verify Record Security

Test imported data visibility to make sure that the fail-open state resolves.

1. Log in as a standard user not listed in the Share file. Verify that the records don't appear in the component.
2. Log in as the record owner. Verify that a record owner can see the records.