expressappframework-devexpress-dot-expressapp-dot-security-dot-authenticationactivedirectory.md
Specifies whether a user is created automatically for the Windows account used to run the application.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.Security.v25.2.dll
NuGet Package : DevExpress.ExpressApp.Security
public bool CreateUserAutomatically { get; set; }
Public Property CreateUserAutomatically As Boolean
| Type | Description |
|---|---|
| Boolean |
true, to create a user for the current Windows account automatically; otherwise, false.
|
If your XAF application is created through the standard wizard, call the CreateUserAutomatically method in the application builder code to create a user for the current Windows account automatically. If you create an application with the Template Kit and enables the Windows authentication (the Active Directory (uses Windows account) option), the kit adds the CreateUserAutomatically method call in the Startup.cs file.
The following code snippets (auto-collected from DevExpress Examples) contain references to the CreateUserAutomatically property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
xaf-how-to-import-data-in-xaf/CS/WinWebSolution.Web/ApplicationCode/WebApplication.cs#L56
//
this.authenticationActiveDirectory1.CreateUserAutomatically = true;
this.authenticationActiveDirectory1.UserType = typeof(DevExpress.Persistent.BaseImpl.SimpleUser);
XAF_how-to-show-filter-dialog-before-listview/CS/E1554.Web/WebApplication.cs#L75
//
this.authenticationActiveDirectory1.CreateUserAutomatically = true;
this.authenticationActiveDirectory1.LogonParametersType = null;
xaf-how-to-import-data-in-xaf/VB/WinWebSolution.Web/ApplicationCode/WebApplication.vb#L58
'
Me.authenticationActiveDirectory1.CreateUserAutomatically = True
Me.authenticationActiveDirectory1.UserType = GetType(DevExpress.Persistent.BaseImpl.SimpleUser)
XAF_how-to-show-filter-dialog-before-listview/VB/E1554.Web/WebApplication.vb#L68
'
Me.authenticationActiveDirectory1.CreateUserAutomatically = True
Me.authenticationActiveDirectory1.LogonParametersType = Nothing
See Also
AuthenticationActiveDirectory Class