# Setting file download permission for user groups in OpenCart

> Control which OpenCart user groups can access and download files by editing user group permissions in the admin dashboard.

Source: https://helpcenter.ruachost.com/apps/opencart/setting-file-download-permission-for-user-groups-in-opencart/

OpenCart allows you to control which user groups can access and download files. On **ruachost.com**, you can configure file download permissions to ensure only authorized users have access to restricted content.

## Why Configure File Download Permissions?

- Protects sensitive files from unauthorized access.
- Ensures only specific customer groups can download products or resources.
- Helps manage licensing, premium content, or digital products.

## Steps to Set File Download Permissions

### Step 1: Log in to OpenCart Administrator

- Use your administrator account to access the backend dashboard.

### Step 2: Navigate to User Groups

1. In the left sidebar, click **System → Users → User Groups**.
2. Select the user group you want to edit (e.g., *Default*, *Customer*, *Affiliate*).

### Step 3: Configure Permissions

1. In the **Edit User Group** page, scroll to the **Access Permission** and **Modify Permission** sections.
2. Locate the **download** option in the list.
3. Check the box to grant permission for file downloads.

   - **Access Permission** → Allows the group to view/download files.
   - **Modify Permission** → Allows the group to manage/download files.

### Step 4: Save Changes

- Click **Save** to apply the new permissions.
- The selected user group now has file download rights.

> **Important Notes:**
- Always assign permissions carefully to avoid exposing sensitive files.
- Customer groups should only be given **Access Permission**, while administrators may need **Modify Permission**.
- Test by logging in as a user from the group to confirm download functionality.
- Clear OpenCart cache after updating permissions.
