Skip to main content

AuthenticationActiveDirectory.CreateUserAutomatically Property

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

Declaration

public bool CreateUserAutomatically { get; set; }

Property Value

Type Description
Boolean

true, to create a user for the current Windows account automatically; otherwise, false.

Remarks

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 snippet (auto-collected from DevExpress Examples) contains a reference 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.

See Also