Most users cannot access Web.config files in Microsoft SharePoint Server. The affected group of users does not include farm administrators, local administrators, or members who are managed by the system.


For security, users other than those that are specified in the "Symptoms" section are restricted from accessing Web.config files.


To work around this issue for existing Web.config files, farm administrators can take the following steps to grant Web.config file permissions to trusted users:

  1. Right-click Web.config, and then select Properties.

  2. Select Security > Edit > Add.

  3. Enter the username, select Check Names to resolve the user, and then select OK.

  4. Select the permissions for that user, and then select Apply> OK.

To avoid this issue for new Web.config files, farm administrators can run the following commands to skip restricting the permissions for Web.config files:

add-pssnapin *

Need more help?

Expand your skills
Explore Training
Get new features first
Join Microsoft Insiders

Was this information helpful?

What affected your experience?

Thank you for your feedback!