反馈已提交

网络繁忙

You are viewing 5.1 help doc. More details are displayed in the latest help doc.

Multi-level Organization Authority Assignment

Ⅰ. Overview

1. Version 

BI server version

5.1

2. Expected Scenario

When the company organization has a tree-like hierarchical relationship, each level wants to assign different permissions.

For example, there is a tree-like relationship between the head office, branches, and sub-branches, and users need to be assigned different permissions according to different institutions.

The effect is that the head office can see all the data, the branch can see the data of the branch where it belongs and all the data of the sub-branch under the jurisdiction of the branch, and the sub-branch only sees its own data.

图片1.png


3. Implementation ideas

FineBI multi-level/tree permissions are "build self-looping columns > import users from server datasets (or user synchronization datasets) > match the fields where users log in > assign permissions according to institutions > assign permissions according to users".

Note: For BI projects of version 5.1.10 and later, the "Self-loop column" setting is not supported for real-time data. Users can use self-loop SQL to assign permissions. For details, please refer to: Assign permissions using the fine_username parameter .

serial number

Steps

illustrate

1

Build self-looping   columns

After the original   institutional data is added to BI, there is usually no tree structure. By   building a self-looping column, a tree-like institutional relationship can be   formed, which is convenient for subsequent assignment of permissions   according to levels.

2

Import users

Import data through server   datasets, or use user sync datasets to directly synchronize user tables saved   in the database

3

Match the field where   the user is logged in

Match the user login account   with the account in the user login permission table saved in the system. This   step is to match the user's institution according to the user's login account   when the user logs in to the system.

4

Assign permissions by   institution

Assign different permissions   according to different levels of institutions, so that when users log in,   permissions are matched according to the institution

5

Assign permissions   based on users

If there are some users who   can only view their own related data, these users can be assigned the   permissions of matching accounts separately, so that users can only see their   own related data when they log in

Ⅱ. Prepare sample data

Click to download the sample data and unzip it:Sample Data.zip

·       Institution Table: It includes the bank's head office, branches, sub-branches, and the corresponding "institution code" and "superior institution code", as shown in the following figure:

2022-07-20_10-53-43.png

·       User Permission Table: contains the bank staff's user account, password, institution code, department and position, as shown in the following figure:

2022-07-20_10-58-14.png

·       Business Flow Table: contains the transaction data that the corresponding staff can see, as shown in the following figure:

2022-07-20_11-05-35.png

Ⅲ. Data Preparation

1. Create a new Excel dataset

The administrator logs in to the Decision-Making System, clicks "Data Preparation", and creates a new business package.

Note: When importing data, fields such as institution, parent institution, institution number, etc., need to be selected as text fields, otherwise the institution cannot be selected as the display value in the following self-looping column settings.

1) Add the Excel data set "Institution Table" in the business package, please manually modify the "Institution" and "Parent Institution" field formats to "Text", as shown in the following figure:

2022-07-20_11-12-59.png

2) Add the Excel dataset "Business Flow Table" to the business package. Please manually modify the "regional Code", "Institution number" and "counter number" field format to "Text", as shown in the following figure:

2022-07-20_11-17-25.png

3) Add the Excel data set "User Permission Table" to the business package. Please manually modify the "Account" and "Institution" field formats to "Text", as shown in the following figure:

2022-07-20_11-22-14.png


2. Add association between tables

Click "Data Preparation", enter the business package, select "Institution Table", click "Associated View", configure the association relationship for the "Institution Table", "User Permission Table" and "Business Flow Table" and update the data table. As shown below:

Note 1: For the specific operation of adding an association relationship, please refer to: Adding an Inter-Table Association .

Note 2: When importing data, fields such as institution, parent institution, institution number, etc., need to be selected as text fields, otherwise the institution cannot be selected as the display value in the following self-looping column settings.

Note 3: For BI projects after 2020-08-04, when the business package is updated, the Excel dataset association will not be updated, and global update can be used.

2022-07-20_11-27-28.png

3. Creating self-looping columns

Click "Data Preparation", enter the business package, select "Institution Table", click "Edit", select all fields , create "Self-Circulation Column", and configure the hierarchical relationship of the organization table. As shown below:

2022-07-20_11-29-54.png

2022-07-20_11-31-49.png


self-looping column type , select "Institution" and "Institution Name" for the displayed value of the hierarchical result, select "Institution" for the ID column of the hierarchical basis, and "Parent Institution" for the Parent ID column.

Click "Build Relationship" and "Preview" to see the following hierarchy and data preview. Click "Save" in the upper right corner to save the self-looping row operation. As shown below:

2022-07-20_11-34-41.png

2022-07-20_11-39-03.png


Ⅳ. Set up the dashboard

1. Create a new self-service dataset

The administrator logs in to the data decision system, clicks "Data Preparation", and adds "self-service dataset" under "My Self-Service Data Set".

Select all fields in the "Business Flow Table" and "Institution Table", and click "Save and Update", as shown in the following figure:

Note: Since the example uses the super administrator account, the super administrator is the data processing user by default. The self-service data set created under the common service package cannot inherit the basic table permissions, so it needs to be created under the My self-service data set. For data analysis users to create self-service datasets, create them directly under the common business package and check permission inheritance .

2022-07-20_11-47-31.png

2022-07-20_11-51-19.png


2. Create a dashboard

For the created self-service dataset, make sure to select "Permission Inheritance". Click "Create Component", select "Group Table" for the chart type, and select "Institution Name-Level 1", "Institution Name-Level 2", "Institution Name-Level 3", "Counter Number", and "Name of Trade" for the dimensions. , "Transaction serial number" and "Ticket Number", click "Enter the Dashboard", as shown below:

2022-07-20_11-54-35.png

2022-07-20_11-57-06.png

created dashboard is shown in the following figure:

2022-07-20_12-00-45.png

3. Mount the Dashboard

The administrator logs in to the data decision system, clicks "Manage> Directory", and mounts the dashboard created in the previous section in the directory, as shown in the following figure:

2022-07-20_12-02-43.png

Ⅴ. User Management

1. Create server dataset

The administrator logs in to the data decision system, clicks "Manage> Data Connection > Server Dataset", and clicks "Create Dataset > File Dataset".

The dataset name is "User Table", the file type is "Excel", select the "User Permission Table" prepared in Chapter 2 , and click "Save", as shown in the following figure:

2022-07-20_12-06-08.png


2. Import users

The administrator logs in to the data decision system, clicks "Manage> User", and clicks "All Users > Import User".

Select the server dataset created in the previous section , the specific settings are shown in the following figure, and click "OK" to successfully import users.

2022-07-20_12-16-45.png

3. Set up platform users

The administrator logs in to the data decision system, clicks "Manage > User", and clicks "Platform User".

Add all the users imported in the previous section as "PC User ". If users have editing and viewing permissions, add all the newly imported users to "BI Data Processing Users", as shown in the following figure:

2022-07-20_12-19-50.png

Ⅵ. Permission configuration

1. Assign directory permissions

The administrator logs in to the data decision system, clicks "Manage > Permission > General Permission Configuration", and selects "Management Department" and "Business Department".

the "View" permission of the "New Dashboard2" created in Chapter 4 to these two departments respectively . As shown below:

2022-07-20_12-22-16.png

2. Set the field where the login user is located

The configuration of the field where the login user name is located refers to binding the login user of the system to the field where the user information of the corresponding data table is located, so as to control the user's authority.

The administrator logs in to the data decision system, clicks "Manage> Permission > General Permission Configuration", selects the rights carrier "Department/Role/User", and selects all departments here.

Select the "Data Authorization" tab, click "Please Select" in the "Login User Field", select the "User Permission Table" in the business package, and select the "Account" field, as shown in the following figure:

2022-07-20_12-25-52.png


3. Allocate the data authority of the management department according to the organization

The administrator logs in to the data decision system, clicks "Manage > Permission> General Permission Configuration", and selects "Management Department".

Click "Data Authorization" to assign the "Use" permission of the "Business Flow Meter" and "Institution Table" used by the "Business Flow Dashboard" to the management part. As shown below:

2022-07-20_12-30-19.png

At this point everyone in the management department can see all the data. In order to realize that the head office can see all the data, the branch can see the data of the branch and the sub-branch under its jurisdiction, and the sub-branch can see its own data, it is necessary to configure user data permissions according to the institution.

Select the "Permission Settings" button after "Institution Table", add row permission conditions, make the "User Permission Table". "Institution" field of the "Institution Table". "Institution" field "In (Login User Info)", and click "OK", as follows As shown in the figure:

2022-07-20_12-34-05.png

4. Allocate data permissions of business department according to users

The administrator logs in to the data decision system, clicks "Administration System > Privilege Management > General Privilege Configuration", and selects "Business Department".

Click "Data Permission" to assign the "Use" permission of the "Business Flow Meter" and "Organization Table" used by the "Business Flow Dashboard" to the business department. As shown below:

2022-07-20_12-37-48.png

At this point, everyone in the business department can see all the data. To enable tellers to only see their own data, user data permissions need to be configured according to the teller account.

Select the "Permission Settings" button after "Business Flow Table", add row permission conditions, make the "User Permission Table. Account" field of the "Business Flow Table.counter number" field "In (Login User Info)", and click "OK" ",As shown below:

2022-07-20_12-41-51.png

Ⅶ. Effect View

Log in to the data decision-making system with the accounts of the branch manager, branch manager, and teller respectively, and view the "Salesman Flow Dashboard".

1) The head of the branch (account number 99) is displayed as all area codes 22 (namely Nanchang Branch), and the dashboard displays data including subordinate areas, as shown in the following figure:

2022-07-20_12-46-29.png

2) The head of the branch (account number 101) is displayed as the data of all institutions whose number is 22701 (ie, branch A), as shown in the following figure:

2022-07-20_12-47-45.png

Attachment List


Theme: Admin Guide
Already the First
Already the Last
  • Helpful
  • Not helpful
  • Only read

售前咨询电话

400-811-8890转1

在线技术支持

在线QQ:800049425

热线电话:400-811-8890转2

总裁办24H投诉

热线电话:173-1278-1526

文 档反 馈

鼠标选中内容,快速反馈问题

鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。

不再提示

10s后关闭