Export (0) Print
Expand All
Expand Minimize

<user> Element

Allows definition of user name and password credentials within the configuration file.


<user name="username" password="password"/>

Required Attributes

Attribute Description
name The logon user name.
password The user's password.


The following example sets password format and supplies a user name and password.

<authentication mode="Windows">
   <credentials passwordFormat="SHA1">
      <user name="UserName" 


Contained Within: <system.web>

Web Platform: IIS 5.0, IIS 5.1, IIS 6.0

Configuration File: Machine.config, Web.config

Configuration Section Handler: System.Web.Configuration.AuthenticationConfigHandler

See Also

<authentication> Element | <credentials> Element | XML Web Services Created Using ASP.NET and XML Web Service Clients | ASP.NET Configuration | ASP.NET Settings Schema

© 2015 Microsoft