DNA Tool
DNA Tool

Overview

The DNA tool is a Windows™ desktop application that manages a Red Centre Software compliant licensing database.

See the Carbon.Examples.Licensing.Provider GitHub repository and Wiki for technical information about how licensing providers can be created and used to manage licensing databases. Red Centre publishes an example licensing provider that uses a SQL Server database as the bcking storage for licensing information.

This section is under construction.


Bulk User Import

The DNA tool provides a facility to bulk import user account information. Use the User > Import menu to open a file selector for Excel workbooks (*.xlsx).

User import menu

The first worksheet in the Excel workbook must be named Import Users.

First Excel worksheet name

The worksheet containing the import data must conform to some strict rules.

The first row contains the names of the columns. Each column name must exactly correspond to a property of the licensing User class. The following tables defines all valid column/property names that can be imported. Note that only the Name and Psw properties are required, all others will take aceptable default values if an import column for them is omitted.

Name Type Format Max Length Note
Namestring128Required
Pswstring64Required
Emailstring128
EntityIdstring128
ProviderIdstring128
CloudCustomerNamesstring[]comma separated256
JobNamesstring[]comma separated256
VartreeNamesstring[]comma separated256
DashboardNamesstring[]comma separated256
Rolesstring[]comma separated 128
DataLocationDataLocationType?
Sequenceint?
UidGuidSee: Guid.Parse Remarks
Commentstring2000
Filterstring128
LoginMacsstring256
LoginCountint?
LoginMaxint?
LastLoginDateTime?
SunsetDateTime?yyyy-MM-dd
MaxJobsint?
Versionstring32
MinVersionstring32
IsDisabledboolTrue | False
CreatedDateTimeyyyy-MM-dd

All cells in the import sheet should be formatted as Text cells. This avoids automatic formatting of dates and numbers into locale specific formats. Import processing expects certain cell types to be in specific formats, and using plain Text cell formats will help preserve the input text formatting. The display formatting of the cell (bold, alignment, etc) is ignored.

Import processing fully validates all import cells and will not proceed if any errors are found. Popup messages will provide a full explanation of all errors found.

Attempting to import User names that already exist in the licensing database is considered an error and no import processing occurs.

Following is a screenshot of a worksheet containing some test data for import processing.

Sample import worksheet


Return to the Development Portal