# What is the usage of ByPass Rules?

### Description

During system configuration, there is an option to set the ByPass rule option. By default, the option is set to "No". There are use cases when this option can be set to "Yes".

### Solution

Following are the use cases when ByPass option is used:

* **Ignore rules/validations:** This will allow users to write invalid value(s) to any field in the system.\
  For example, the **State** field contains only two states: "Active" and "Closed". If the user wants to write an invalid value in state (e.g., "New"), that is possible.\
  Another example: a rule is configured that the **Description** field should not be empty when the **State** field changes to "Active". This kind of rule can be ignored if ByPass option is set to "Yes".
* **User Impersonation:** A user can create/update a work item by a different user than the Integration user.\
  If ByPass Rule is set to "No", the work item is created/updated by the Integration user.\
  If ByPass is set to "Yes", the user can configure the integration so that a work item is created by the original audit user.\
  In short, configuration of **Changed By** or other user fields in audit/history can be changed by enabling ByPass.
* **Date ByPass:** Ignore the date validation and create/update a work item at the same time as it is created in the source.\
  This means a user can create/update a work item with a past date using the ByPass option.\
  In short, a user can change **Changed Date** or other date fields in audit/history by enabling ByPass.

Refer table under [Team Foundation Server - Common](/opstech-docs/connectors/azure-devops.md#known-behaviors--limitations) section to check which all fields are supported with and without ByPass with different API options.


---

# Agent Instructions: Querying This Documentation

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

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://opstech.gitbook.io/opstech-docs/help-center-index/faqs/tfs-faqs/buypass.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
