in src/main/java/com/epam/digital/data/platform/report/service/RoleService.java [84:99]
public void createAuditorGroup() {
if (!isGroupCreated(AUDITOR_ROLE_NAME)) {
log.info("Creating auditor group and datasource");
var group = new Group(AUDITOR_ROLE_NAME);
var role = new Role(AUDITOR_ROLE_NAME);
role.setPassword(rolePasswordMap.get(AUDITOR_ROLE_NAME));
var dataSource = dataSourceService.buildDataSource(role);
var createdGroup = groupService.createGroup(group);
var createdDataSource = dataSourceService.createDataSource(dataSource);
groupService.deleteAssociation(defaultGroup, createdDataSource);
groupService.associate(createdDataSource, createdGroup, adminGroup);
}
}