---
description: Limit access to a recommendation to specific users or roles
relatedTerms:
  - ai-recommendation
  - user
  - item-feed
  - aggregate
  - expression
---

## Related terms

- ai\-recommendation
- user
- item\-feed
- aggregate
- expression

See the [glossary](/glossary.md) for definitions.

---

# Change recommendation access settings


By default, a recommendation can be managed by all [users](/docs/settings/identity-access-management/users) with the [required permissions](/docs/settings/identity-access-management/permissions/ai-hub-permissions#work-with-ai-recommendations). You can limit access per recommendation to a selection of users or roles.

## How access works

Whether a user can edit or delete a recommendation depends on two levels of permissions:

- **Role permissions**: the permissions of the user's [role](/docs/settings/identity-access-management/permissions), for example **Communications** > **Recommendations**: `edit`. They apply to all recommendations in the workspace.
- **Recommendation access settings**: the settings of a single recommendation, described in this article.

A user can perform an action only if both levels allow it:

| Action | Role permission | Recommendation access setting |
|---|---|---|
| Edit a recommendation | **Communications** > **Recommendations**: `edit` | Edit |
| Delete a recommendation | **Communications** > **Recommendations**: `delete` | Delete |

If either permission is missing, the action button is disabled. Hover over the button to see the reason. If you use the API, the request returns an error.

**For example**:
1. A user's role has the **Communications** > **Recommendations**: `edit` permission.
2. In the access settings of a recommendation, the user doesn't have the Edit permission.
3. As a result, the user can't edit this recommendation, but can edit other recommendations.

## Considerations for access settings

- All users with the **Communications** > **Recommendations**: `read` permission have at least read-only access to all recommendations, regardless of per-recommendation access settings.
- The [PROFILE_ADMIN role](/docs/settings/identity-access-management/permissions#basic-roles) always has unlimited access, regardless of per-recommendation access settings.
- Access settings don't apply to duplicating. To duplicate a recommendation, you only need the **Communications** > **Recommendations**: `create` permission.
- To create and edit recommendations, you need permissions to the objects used in the recommendation configuration. You must grant them separately:
    - **Assets** > **Catalogs**: `read`
    - **Settings** > **AI engine configuration**: `read`
    - **Analytics** > **Aggregates**, **Expressions**: `read`
    - **Search engine**: `read`
- If you configure different permissions for a user than for their roles, all granted permissions are combined.  
    **For example**:
    1. You grant only the "edit" permission to a user.
    2. You grant only the "delete" permission to a role where this user belongs.
    3. As a result, the user has both "edit" and "delete" permissions.



## Changing access settings

To change the access settings:
1. Go to <img src="/api/docs/image/f752462c4d1ae5cfd585c59fab53d8405cb752d4/icons/ai-hub-icon.svg" alt="AI Hub icon" class="icon"> **AI Hub > (AI Recommendations) Models**.
2. Open the access management panel in one of the following ways:
    - In the list of recommendations, find the recommendation you want to manage and click the padlock icon.
    - Open the recommendation and click the padlock icon to the right of the **Save** button.
3. From the **Permission in this object** dropdown list, select an option:
   - **Public**: everyone with the required permissions can access and manage the recommendation.
   - **Read only**: everyone with module permissions can access the recommendation, but only the creator and administrators can edit or delete it.
   - **Restricted**: you can manage edit and delete permissions separately for different users and roles.
4. If:
   - you selected **Public** or **Read only**, click **Apply** to save and start enforcing the settings.
   - you selected **Restricted**, proceed to [configuring the details (next step)](#restricted-config).
5. <span id="restricted-config"></span>Configure the settings for **Users** and **Roles**:  
   1. Expand the options and configure them:
      - For **Users**:
        1. To add a user to the list of managed users, enter their name or email address in the search box and click their name.
        2. Repeat to add more users.
        3. Confirm by clicking **Add user**.
        4. Use the checkboxes to set the permissions for each added user.
        5. To remove a user from the list of permission settings, click <img src="/api/docs/image/f752462c4d1ae5cfd585c59fab53d8405cb752d4/icons/threedoticon.svg" alt="Three-dot icon" class="icon"> next to their name and click **Remove user**.
      - For **Roles**:
        1. Expand the list.
        2. Use the checkboxes to set the permissions for each role.  
           <figure><img src="/api/docs/image/f752462c4d1ae5cfd585c59fab53d8405cb752d4/docs/settings/_gfx/object-permissions-roles.png" class="medium" alt="Selecting permissions for roles; an example with unsaved changes"><figcaption>Selecting permissions for roles; an example with unsaved changes</figcaption></figure>

   If a user has permissions both individually and through a role, the permissions are combined. For details, see [Considerations for access settings](#considerations-for-access-settings).
6. To save and start enforcing the settings, click **Apply** in the lower-right corner.
