UserManagement.Security 1.1.2

Install-Package UserManagement.Security -Version 1.1.2
dotnet add package UserManagement.Security --version 1.1.2
<PackageReference Include="UserManagement.Security" Version="1.1.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add UserManagement.Security --version 1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: UserManagement.Security, 1.1.2"
#r directive can be used in F# Interactive, C# scripting and .NET Interactive. Copy this into the interactive tool or source code of the script to reference the package.
// Install UserManagement.Security as a Cake Addin
#addin nuget:?package=UserManagement.Security&version=1.1.2

// Install UserManagement.Security as a Cake Tool
#tool nuget:?package=UserManagement.Security&version=1.1.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.


It allows to manage user access through roles and permissions in an Intranet applications. It uses easily and is easily reusable.

It is necessary to download the following Packages

  1. UserManagement.Core
  2. UserManagement.SqlServer
  3. UserManagement.Security

Currently it is only possible to use a DB SQL SERVER.


To use 'application user management is necessary to enter this section of code in the Owin Start Class.

.UseSqlServerStorage("<SQL Connection>"
,new SqlServerStorageOptions());            

The ** SqlServerStorageOptions ** Class has the following properties:

  1. PrepareSchemaIfNecessary
    • Indicate if you need to create the schema (default true)
  2. TransactionTimeout
    • Time Out for SQL transactions
  3. CommandTimeout
    • Time Out for SQL commands
  4. SchemaName
    • Indicates the name of the Schema which create tables (default UserManagement UserManagement)

To view the Dashboard will also need to add one more row in the Start Owin file

app.UseUserManagerDashboard("Name App");

This call is also possible to add options through the class DashboardOptions

  • AppPath (Path of the reference Intranet application)
  • Authorization (Management of internal permissions to UserManagement)
  • DisplayStorageConnectionString (Viewing the connection string)
  • DashboardTitle (DashBoard title)
Usage Example
GlobalConfiguration.Configuration.UseSqlServerStorage("Server=name_server; Database=DBGeneric; user id=User234;password=User234", new SqlServerStorageOptions
   CommandTimeout = TimeSpan.FromMinutes(5)

Writing the above, it will be possible to view the DashBoard by typing the word Admin in the URL (ex:

Authorization Management

In the Security package we find two classes.

  1. UserManagementAuthorize
    • Attribute used to manage authorizations
  2. UserManagementFormAuthentication
    • Contains two functions SigIn and SigOut (for access management with Web form)

It can be used on methods, property classes and manages access to the resource. Allows you to define Rules, Permissions and Users divided by ";"

[UserManagementAuthorize(Roles ="R1;R2")]
public ActionResult About()
    ViewBag.Message = "Your application description page.";
    return View();


If you use Form authentication we have two static methods available:

  1. SigIn(string userName, string password)
  2. SigOut()

These allow the user to login and logout.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.1.2 180 10/6/2020
1.1.0 198 10/6/2020
1.0.0 207 8/24/2020