---
title: "How can you enable impersonation in the web.config file?"  
description: "How can you enable impersonation in the web.config file?"  
author: "Sumit Kesarwani"  
published: 2014-09-01  
updated: 2020-09-23  
canonical: https://www.mindstick.com/interview/2090/how-can-you-enable-impersonation-in-the-web-config-file  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# How can you enable impersonation in the web.config file?

To enable impersonation in the web.confing file, you need to include the <identity> element in the web.config file and set the impersonate attribute to true as shown in the following code snippet:

<identity impersonate = "true" />

## Answers

### Answer by Sumit Kesarwani

To enable impersonation in the web.confing file, you need to include the <identity> element in the web.config file and set the impersonate attribute to true as shown in the following code snippet:

<identity impersonate = "true" />


---

Original Source: https://www.mindstick.com/interview/2090/how-can-you-enable-impersonation-in-the-web-config-file

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
