expressappframework-devexpress-dot-expressapp-dot-security-dot-isecuritystrategybase-0ff83b77.md
Returns the current user object.
Namespace : DevExpress.ExpressApp.Security
Assembly : DevExpress.ExpressApp.v25.2.dll
NuGet Package : DevExpress.ExpressApp
object User { get; }
ReadOnly Property User As Object
| Type | Description |
|---|---|
| Object |
The current user object.
|
The following topic demonstrates how to use this property: Access Object Space, Security System, Caption Helper, and XAF Modules in the ASP.NET Core Environment.
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the User 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.
}
private static Guid CurrentOrgIdFunctionCore(ISecurityStrategyBase security) => ((ApplicationUser)security.User)?.Company?.ID ?? Guid.Empty;
public Type ResultType(params Type[] operands) {
See Also