Project

General

Profile

Actions

Task #2709

closed

Import role attributes with the assigned roles

Added by Alena Peterová almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Peter Štrunc
Target version:
Start date:
03/04/2021
Due date:
% Done:

100%

Estimated time:
Owner:

Description

We need to import assigned roles to users together with their role attributes.

Please extend ImportCSVUserContractRolesTaskExecutor. New task parameters:
  • Role attributes definition (code)
  • Prefix of column name with role attributes names
  • Prefix of column name with role attributes values

Example settings:
  • Column with roles: role
  • Column with username: login
  • Roles assignment contract type: primeContract
  • Role attributes definition (code): roleParameters
  • Prefix of column name with role attributes names: roleattrname
  • Prefix of column name with role attributes values: roleattrvalue

Example CSV:
login;role;roleattrname1;roleattrvalue1;roleattrname2;roleattrvalue2
t123456;PRISTUP;idCardNumber;123456789;idCardType;OP

The role is set like this:

The result of the import is following assignment of the role:


Files

role_with_attributes.png (15.4 KB) role_with_attributes.png Alena Peterová, 03/04/2021 08:07 PM
role_parameters.png (34.3 KB) role_parameters.png Alena Peterová, 03/04/2021 08:07 PM
Actions

Also available in: Atom PDF