# Assignee Visibility

> **Note: Availability**
> This workflow uses functionality that is only available using the JavaScript Editor. This means that it is unavailable for editing in the Workflow Constructor.
>
>
>
> To learn more about this workflow, refer to the corresponding page in our [Developer Portal](https://www.jetbrains.com/help/youtrack/devportal/Workflow-Assignee-Visibility-Group.html).

This workflow generates a warning when an issue is assigned to a user who is not a member of the group for which an issue is visible.

| Name | @jetbrains/youtrack-workflow-assignee-visibility-group |
| Previous Title | Assignee Visibility Group |
| Auto-attached | yes |
| Rules |   * Warn when issue is not visible to assignee (on-change)    |

## Use Case

This workflow warns users when they assign an issue to an assignee who is not a member of the group for which an issue is visible. A warning is shown if the visibility of an issue is set to a specific group and the assignee is not a member of the visibility group.

The workflow does not block the user from assigning the issue, but can be used to prompt the user to change the visibility setting for the issue.

## Rules

This workflow supports the following rule:

| Title | Description |
| --- | --- |
| Warn when issue is not visible to assignee | When an issue is assigned to a user, this on-change rule verifies that the user is a member of the visibility group. If not, a warning is displayed.    |

