> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/workflow/cards-overview/and/assignee/assigned-user-condition.md).

# Assigned User Condition

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-765bd76e69e44041f5aef4bf76f3af23058bb923%2Fworkflow_card_condition_user_is_isnot_in_list_v2.png?alt=media" alt="Workflow card Assignee: Assigned user Operator one of Users, version 2" width="634"><figcaption><p>Version 2</p></figcaption></figure>

**Purpose**

This workflow card manages the execution of operations based on whether a task or document is assigned to a particular user or set of users. It employs conditional logic to either trigger or prevent specific actions, making it ideal for workflows that require user-specific handling.

**Components of the Card**

1. **Operator**
   * **Description**: Defines the logical condition to apply to the user assignment.
   * **Options**:
     * **IS**: Triggers the operation if the assigned user of the document or task matches any user in the specified list.
     * **IS NOT**: Triggers the operation if the assigned user of the document or task does not match any user in the specified list.
2. **User List**
   * **Description**: A list or selection of users to compare against the assigned user.
   * **Detail**: This list can include one or multiple users, allowing the card to handle both singular and multiple user conditions effectively. The selection can be made through checkboxes, a multi-select dropdown, or similar UI elements.

**Functionality**

* **User Assignment Identification**: Automatically identifies the user or users assigned to a particular task or document within the ERP system.
* **Condition Evaluation**:
  * Using the **IS** operator, the card checks if the assigned user is among those listed in the User List.
  * Using the **IS NOT** operator, the card ensures the assigned user is not among those listed.
* **Action Execution**:
  * **True Condition**: If the user assignment meets the condition (either IS or IS NOT), relevant actions are triggered, such as notifications, task initiations, approvals, or other workflow steps.
  * **False Condition**: If the condition is not met, the workflow will not continue.

**User Interactions**

* **Setup and Configuration**: Users configure the card by selecting an operator and specifying the relevant users from the User List. Setup should be user-friendly and intuitive to accommodate selections from potentially large user bases.
* **Monitoring and Reporting**: The ERP system should provide functionality to monitor and report on the operations triggered by this card, offering insights into assignment accuracy and process efficiency.
* **Error Handling and Notifications**: Users should have options to receive alerts or notifications if there are issues with the assignments, such as unassigned tasks or errors in user selection.

#### Conclusion

The "Assigned User Condition" workflow card is a critical tool for managing document and task workflows that depend on user assignments. By allowing conditions based on whether a task or document is assigned to specific users, it ensures that workflows are only triggered by appropriate user interactions, enhancing both accountability and task alignment within teams. Clearly documenting this card will help users understand its significance and integrate it effectively into their workflows, ensuring smooth and efficient operations tailored to user roles and responsibilities.

## Practical example

**When to use:** Continue only when a document is assigned to an approved reviewer.

**Configuration:** Select is-one-of and the configured demo users `Demo Reviewer A` and `Demo Reviewer B`.

**Expected result and counterexample:** A document assigned to `Demo Reviewer B` passes; one assigned to a different user fails.

This is an illustrative configuration and expected outcome. Use fields, users and groups configured in your test organization; it is not a claim that this example was executed.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.docbits.com/administration-and-setup/workflow/cards-overview/and/assignee/assigned-user-condition.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
