Set Up Dynamic Security Using Security Files

Assign permissions based on a defined security attribute.

Access requirements

Custom profile with these capabilities:

  • Data (Write, Detailed)

  • Model (Write, Simple)

  • Permission Management (Write, Simple)

  • Security (Read, Simple)

  • User Management (Read, Simple)

Users with this permission capability: Super Admin Permission

Reach out to your administrator for access.

Overview

You can assign security permissions to users by sending a security data file to Visier. With this approach, security updates with each data load, which minimizes ongoing maintenance.

A dynamic filter uses the security data file to assign permissions to existing users. To change these assignments, send an updated file. Any change to an existing file requires a new data version. Data access may be briefly delayed while Visier processes the change.

Use additional security measures when a user needs access to an organization outside their hierarchy, or to an organization that doesn't roll up to them. You can use security data files to assign permissions dynamically in the following situations:

  • A user needs access to an organization that they don't belong to. For example, an HR business partner needs access to R&D.
  • A user needs access to multiple organizations. For example, an HR business partner needs access to R&D and IT.
  • Multiple users need access to one organization. For example, multiple HR business partners support the same R&D organization.

For an example of dynamic security using security data files, see Automatically Update User Access by Attribute.

Prepare and load security data files

To assign security by file, load security data files alongside your source files, not into existing analytic objects. For example, don't load the security data file into the Requisition object. Instead, load it as a separate file in addition to the Requisition data. For more information about loading data, see Bring Data In.

Map a population using a security data file

After you load your source data into Visier, add a property to each dimension that the file identifies. The property name must end with _List so that the data loads correctly.

Prerequisites

A parent-child dimension is required to assign security dynamically. If your data doesn't have one, create a new parent-child dimension. For more information, see Create a Parent-Child Dimension.

You also need the following files:

  • Population file: Sets the population access in the dynamic permission or assigns a permission to a user.
  • User group matrix file: Defines the user group that receives the dynamic permission. You don't need this file when the employee already has the information that identifies user group membership. For more information, see User group matrix file.

To grant a permission, the employee ID must appear in both the population file and the user group matrix file. Send files to Visier in pipe-delimited, UTF-8 format. For more information, see Data File Guidelines.

Set up the population file

The population file must contain the following columns:

  • Hierarchy: The parent-child dimension that you assign access to through a permission. This column distinguishes between nodes that have the same ID but belong to different parent-child dimensions. It can contain one value for one dimension, or multiple values for several dimensions. For example, the Organization, Supervisory, and Company dimensions can all appear in this column.
  • Node: The reference key of a parent-child dimension node in your data source. For example, one supervisory node has the reference key SUP1.2, and another has the reference key SUP1.9.
  • User group columns: One column for each unique user group that needs access to the node. You need at least one user group column to set population access. For example, one column can represent HR business partners (HRBP) and another can represent HRBP Analysts.

Tip: To list several items in the same cell, separate them with a comma and a space. For example, employee IDs 123, 124, 125 can all appear in one cell under HRBP. This format is necessary to load different data formats properly. After you load your data into Visier, create an extraction rule that removes the white space so that you're left with a comma-separated list to map to your data source.

The following population file example assigns dynamic security for HRBP and HRBP Analyst permissions.

  • Employee 123, as an HRBP, can see nodes SUP1.2 and SUP1.9 of the Supervisory dimension.
  • Employee 123, as an HRBP Analyst, can see node ORG1.1 of the Organization dimension.
  • Employee 125, as an HRBP, can see only node SUP1.2 of the Supervisory dimension.

Hierarchy

Node

HRBP

HRBP Analyst

Supervisory

SUP1.2

123, 125

 

Supervisory

SUP1.9

123

 

Organization

ORG1.1

 

123

Add a custom property to the parent-child dimension

  1. In a project, on the navigation bar click Model > Dimensions.
  2. Select the dimension related to the population file. For example, Organization_Hierarchy.
  3. In Customize, under Custom properties, click Add Custom Property.
  4. Enter a display name with the _List suffix. For example, Organization_Access_List.
  5. In Data type, select Text.
  6. Click Add.
  7. Repeat steps 3-7 for every role you're assigning access to.

Create a lookup mapping

  1. In a project, on the navigation bar, click Data > Mappings > Create Mapping.
  2. Enter a display name that uses the Security Definition - prefix to notify other users that these files are used to define security. For example, Security Definition - Organization Hierarchy Lookup.
  3. Add the description To set up dynamic security by file.
  4. In Mapping type, select Lookup.
  5. Select the source containing your data in the population file.
  6. Expand Target group and select the group included in the mapping.
  7. In Data file type, select Temporal.
  8. Click Override behavior > Event date.
  9. Click Create.

Map the properties

  1. Click MappingKey > Map from a column, and then select a key value from your source. For example, EmployeeID.
  2. Click EventDate > Map from a column.
  3. Select the nodes to include in the mapping.
  4. Click Add Intermediate Property.
  5. In your new property, click Map from formula.
  6. Enter an extraction rule to remove white space so you are left with a comma-separated list. The following example removes white space from the HRBP column.

    Copy
    Extraction rule: Remove whitespace
    stringSubstitute(column("HRBP"), " ", "")

    In this extraction rule, the stringSubstitute function removes white space from the HRBP column, leaving a comma-separated list.

The property is now mapped to your data source. Next, create a business rule on the parent-child dimension. The rule looks up the access list and assigns it to the _List property that you created.

Create a business rule

  1. In a project, on the navigation bar, click Data > Rules.
  2. In Business Rules, click Create Rule.
  3. In Rule type, select Business rule.
  4. In Display name, enter a name that starts with the Security Definition - prefix so that other users know the rule defines security. For example, Security Definition - Organization Access Lookup.
  5. In Subject, select your parent-child dimension.
  6. In Description, enter To set up dynamic security by file.
  7. Enter a formula that looks up the access list and assigns it to the _List property. For more information, see Business Rules.
  8. Click Create.
Copy
Business rule syntax: augmentingMapping
augmentingMapping(
    mappingName, 
    mappingKey, 
    mappedProperties [,ifUnmapped, filter, ifOutputExists, ignoreIfNoValue]
)

Load the user group information

If you need a user group matrix file to define your user groups, load the information into the analytic model. Visier loads the information from this file as leveled dimensions and auxiliary mappings on the Employee subject. For more information, see Create a Leveled Dimension and Add a Mapping.

Generate a data version

Run a job to generate a data version. You can then preview the new mappings to check that they're correct. For more information, see Run a Job.

Create a permission

  1. In a project, on the navigation bar, click Security > Permissions.
  2. In the Permissions room, click Add Permission.
  3. In the New Permission dialog, add a display name and description for the permission and then click Create.
  4. Select the items you want to grant access to:
    1. In the Data security tab, click Add access.
    2. In the Select the data dialog, select the items and then click Finish. For more information, see Set Access.
  5. Click the Population Access value of your subject from the list and select Custom.
  6. Expand Dynamic Filter > User to dimension.
  7. Select your parent-child dimension. For example, Organization Hierarchy.
  8. Expand the name of your Organization_Security_Organization_Access_List > Employee ID. Leave the other fields at their default settings. After you select a setting, the default value is no longer available.
  9. Click Apply.

User group matrix file

This file is optional when user group information already exists on the Employee subject. If the Employee subject doesn't provide user group information, provide the following columns to assign user groups to a permission:

  • EmployeeID: A unique identifier for each employee.
  • Designation columns: One or more columns that identify whether the employee belongs to a user group. Use 1 for yes and 0 for no.

The following user group matrix file example assigns employees to the HRBP and HRBP Analyst user groups:

  • Employee 123 belongs to HRBP and HRBP Analyst user groups.
  • Employee 125 belongs to HRBP user group.
  • Employees 124 and 126 don't belong to the HRBP or HRBP Analyst user groups.

Employee ID

HRBP

HRBP Analyst

123

1

1

124

0

0

125

1

0

126

0

0

Configure the user group (optional)

If using the user group matrix file, define the user group that receives the dynamic permission through a security data file. With this method, Visier assigns security by user group dynamically, but only to users defined in the user group matrix file. If needed, create a new user group. For more information, see Create a User Group.

  1. In a project, on the navigation bar, click Security > User Groups.
  2. Select the user group that will receive the dynamic permission.
  3. In the Users tab, beside Dynamic Users, click Edit.
  4. Select the dimensions that define the user group. This step incorporates the dimensions listed in the user group matrix file. Include all dimensions that you need for all users provisioned in the permission.
  5. Select the new attribute to assign the filter. In the user group matrix file example, the attributes match the column headings: HRBP and HRBP Analyst.
  6. Select the security value of the attribute. As seen in the example user group matrix file, select a value of 1 to include the security value in the filter.
  7. Click Apply.
  8. In the Permissions tab, find the permission you created earlier and turn on the Enabled toggle.

After you configure the permission, preview your data version to confirm that the changes worked. For more information, see Preview a Data Version.

Map a user to a file

You can map user IDs to subject IDs by using a dynamic filter and a security data file. Each subject ID that an analytic object uses can be associated with an array of user IDs. Analytic objects include Requisition, Applicant, and Employee, which use the subject IDs RequisitionID, ApplicantID, and EmployeeID.

Each user ID must appear on every subject ID record that the user can access. Always send a full restatement of the security data file. Visier ignores previous files.

To map a user to a subject member, set up the following in Visier:

  • A source file that provides the member mappings.
  • A mapping that populates the security data file.
  • Permissions that use the security data file.

Create the source file

For the Employee object, the file must contain the following columns:

  • EmployeeID: The ID of the subject member that you're granting access to.
  • UserEmployeeIDs: The employee IDs of the users who can access the subject member.
  • TenantCode: The code that distinguishes between tenants.

Note: Write the strings in the UserEmployeeIDs column in this format: ["EmployeeID1", "EmployeeID2", "EmployeeID3"]. EmployeeID refers to a value that you set on the user. For more information, see Edit User Details.

Example: Let's say your file contains the following mappings:

EmployeeID UserEmployeeIDs
101 ["201", "202", "203"]
102 ["202", "203"]
103 ["203"]

When a user with Employee ID 203 signs in, they can access employees 101, 102, and 103. A user's access changes automatically when you change the mapping file.

Create a mapping

Each subject has a corresponding UserSubjectMemberAccess_{Subject} object that you can map to as a target. Replace {Subject} with the subject that you're giving access to. For example, use UserSubjectMemberAccess_Requisition for the Requisition object and UserSubjectMemberAccess_Employee for the Employee object. For more information, see Add a Mapping.

The mapping requires the following properties:

  • EventDate: Map this property to tenantStartDate so that security applies to the subject at all times.
  • SubjectID: Map this property to the subject that you're giving access to, such as Requisition or Employee. Visier maps it automatically when your file is formatted correctly. You can also map it manually.
  • UserEmployeeIDs: Map this property from your file. Visier maps it automatically when your file is formatted correctly. You can also map it manually.

Generate a data version

Run a job to generate a data version. You can then preview the new mappings to check that they're correct. For more information, see Run a Job.

Create a permission

  1. In a project, on the navigation bar, click Security > Permissions.
  2. In the Permissions room, click Add Permission.
  3. In the New Permission dialog, add a display name and description for the permission and then click Create.
  4. Select the items you want to grant access to:
    1. In the Data security tab, click Add access.
    2. In the Select the data dialog, select the items and then click Finish. For more information, see Set Access.
  5. Click the Population Access value of your subject from the list and select Custom.
  6. Expand Dynamic Filter > User to data file.
  7. Click Apply.

After you configure the permission, preview your data version to confirm that the changes worked. For more information, see Preview a Data Version.