Import Permissions from a CSV file.

<para> The File will contain Column Headers. These are important since the columns relating to Role Permissions include the Role Id. </para> <para> The columns of the CSV file is as follows: <list> <item><code>Permission Key</code><description>The Permission Key</description></item> <item><code>Description</code><description>Description of the Permission Key (optional column)</description></item> <item><code>Basis</code><description>The Permission Basis, either A or D for Allow and Deny (optional column)</description></item> <item><code>Role 1</code><description>The Status of the Role, A, D or [blank] for Allow, Deny and Nothing (optional column)</description></item> <item><code>Role n</code><description>A column will be imported for each Role included in the file, as above</description></item> </list> </para> <para> Any User Defined permissions referenced in the file will be created if they do not currently exist. </para>

Syntax

ISPermissionFunctions.ImportPermissions(fileName)

Parameters

NameTypeOptionalByRefDescription
fileName String The File Name.

Return Value

Boolean

A Boolean value indicating success.

Member of:
ISPermissionFunctions
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0