Project

General

Profile

Actions

Defect #3230

open

Direct managers can partially see inactive subordinates, configuration to allow/disable option to see inactive subordinates

Added by Alena Peterová about 2 years ago. Updated about 1 year ago.

Status:
In Progress
Priority:
Normal
Assignee:
Jan Potočiar
Category:
Filters
Target version:
Start date:
11/24/2022
Due date:
% Done:

80%

Estimated time:
32.00 h
Affected versions:
Owner:
Jan Potočiar

Description

When we use the default settings of managers and subordinates by tree structures (https://wiki.czechidm.com/devel/documentation/architecture/dev/filters#defaultmanagersfilter), the managers are not able to see their inactive subordinates.
If we use finding managers/subordinates by directly configured managers (https://wiki.czechidm.com/devel/documentation/architecture/dev/filters#guaranteesubordinatesfilter), then managers can see the identities in the list of users, but aren't able to open them.

Please:
  • make the default behavior of different algorithms consistent
  • allow us to configure (without implementation) per project, if the managers may see/edit their left subordinate, or not (we need both options for different customers)

Current behavior on version 12.2, steps to reproduce:
  • create manager and their subordinate, deactivate the subordinate by their contract's valid till
  • login as manager -> Users -> clear the filter. You cannot see the inactive subordinate at all:
  • use the direct managers configuration:
    idm.sec.core.filter.IdmIdentity.managersFor.impl=guaranteeManagersFilter
    idm.sec.core.filter.IdmIdentity.subordinatesFor.impl=guaranteeSubordinatesFilter
  • login as manager -> Users -> clear the filter. You can see the inactive subordinate:
  • try to open the inactive subordinate => insufficient access rights

Note: userRole contains userManagerRole, no other changes in default permissions were made


Files

suboridnate_inactive.png (44.4 KB) suboridnate_inactive.png Alena Peterová, 11/24/2022 11:15 AM
default_subordinates.png (35.8 KB) default_subordinates.png Alena Peterová, 11/24/2022 11:15 AM
guaranteefilter_open_inactive_user.png (3.45 KB) guaranteefilter_open_inactive_user.png Alena Peterová, 11/24/2022 11:15 AM
guaranteefilter_users.png (24.8 KB) guaranteefilter_users.png Alena Peterová, 11/24/2022 11:15 AM
inactive-users.png (59 KB) inactive-users.png Jan Potočiar, 04/12/2023 10:33 AM

Related issues

Related to IdStory Identity Manager - Task #3129: The EavCodeContractByManagerFilter returns subordinates from expired contractsClosedTomáš Doischer06/01/2022

Actions
Actions #1

Updated by Alena Peterová about 2 years ago

  • Description updated (diff)
Actions #3

Updated by Tomáš Doischer about 2 years ago

  • Tracker changed from Task to Defect
  • Target version set to 13.1.0
  • Affected versions 12.1.3, 12.4.0 added
Actions #4

Updated by Tomáš Doischer almost 2 years ago

  • Assignee changed from Tomáš Doischer to Jan Potočiar
Actions #5

Updated by Tomáš Doischer almost 2 years ago

  • Sprint set to Sprint 13.1-2 (bře 08 - bře 22)
  • Estimated time set to 32.00 h
Actions #6

Updated by Tomáš Doischer almost 2 years ago

  • Sprint changed from Sprint 13.1-2 (bře 08 - bře 22) to Sprint 13.1-3 (bře 22 - dub 05)
Actions #7

Updated by Jan Potočiar over 1 year ago

I understand the issue, but am not sure about the solution:
  1. What should the configuration look like? How shall it be set? By whom?
  2. If the manager can see his inactive subordinate in the list o users, should he also be able to see his details? (not possible now -> insufficient permissions)
Actions #8

Updated by Tomáš Doischer over 1 year ago

  • Related to Task #3129: The EavCodeContractByManagerFilter returns subordinates from expired contracts added
Actions #9

Updated by Tomáš Doischer over 1 year ago

  • Sprint changed from Sprint 13.1-3 (bře 22 - dub 05) to Sprint 13.1-4 (dub 05 - dub 19)
Actions #10

Updated by Jan Potočiar over 1 year ago

Plan (todo list):
  1. introduce new field to properties config file
    • name: idm.sec.core.filter.IdmIdentity.managerInvalidSubordinateAccess
    • type: boolean
    • purpose: to configure if managers can see (and edit?) their inactive subordinates
    • default value?
  2. adjust DefaultSubordinatesFilter to accept the new config field
    • true scenario
    • false scenario
  3. adjust GuaranteeSubordinatesFilter to accept the new config field
    • true scenario
    • false scenario
  4. fix - inactive suboordinates displayed in the user list view should also have their details accessable
    • should work for both DefaultSubordinatesFilter and GuaranteeSubordinatesFilter
  5. tests
Actions #11

Updated by Jan Potočiar over 1 year ago

  • % Done changed from 0 to 20
Actions #12

Updated by Jan Potočiar over 1 year ago

  • Status changed from New to In Progress
  • % Done changed from 20 to 0
Actions #13

Updated by Jan Potočiar over 1 year ago

  • % Done changed from 0 to 20
Actions #14

Updated by Jan Potočiar over 1 year ago

Question: how should the new config option work with the existing filter for "Inactive" users? Should the filter be disabled for managers who don't have the rights to access users who left the company?

Actions #15

Updated by Jan Potočiar over 1 year ago

Actions #16

Updated by Jan Potočiar over 1 year ago

  • % Done changed from 20 to 70
Actions #17

Updated by Tomáš Doischer over 1 year ago

  • Sprint changed from Sprint 13.1-4 (dub 05 - dub 19) to Sprint 13.1-5 (dub 19 - kvě 03)
Actions #18

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.1-5 (Apr 19 - May 03) to Sprint 13.0.5 - 1 (May 03 - May 17)
Actions #19

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 1 (May 03 - May 17) to Sprint 13.0.5 - 2 (May 17 - May 29)
Actions #20

Updated by Jan Potočiar over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 2 (May 17 - May 29) to Sprint 13.0.5 - 1 (May 03 - May 17)
  • Status changed from In Progress to Needs feedback
  • Assignee changed from Jan Potočiar to Peter Štrunc
  • % Done changed from 70 to 80
Actions #21

Updated by Jan Potočiar over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 1 (May 03 - May 17) to Sprint 13.0.5 - 2 (May 17 - May 29)
Actions #22

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 2 (May 17 - May 29) to Sprint 13.0.5 - 3 (May 29 - Jun 12)
Actions #23

Updated by Peter Štrunc over 1 year ago

  • Owner set to Jan Potočiar
Actions #24

Updated by Peter Štrunc over 1 year ago

  • Status changed from Needs feedback to In Progress
  • Assignee changed from Peter Štrunc to Jan Potočiar

I reviewed the code. It looks good, thanks for the fix. I had one issue with the configuration property, which is described in the PR on GitHub. Once this is resolved, you can close this ticket.

Actions #25

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 3 (May 29 - Jun 12) to Sprint 13.0.5 - 4 (Jun 12 - Jun 26)
Actions #26

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.5 - 4 (Jun 12 - Jun 26) to Sprint 13.0.6 - 5 (Jun 27 - Jun 28)
Actions #27

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.6 - 5 (Jun 27 - Jun 28) to Sprint 13.0.7 - 6 (Jul 12 - Jul 26)
Actions #28

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint 13.0.7 - 6 (Jul 12 - Jul 26) to Sprint JIP-KAAS / IdStory Hub - 7 (Jul 24 - Aug 07)
Actions #29

Updated by Peter Štrunc over 1 year ago

  • Sprint changed from Sprint JIP-KAAS / IdStory Hub - 7 (Jul 24 - Aug 07) to Sprint PoC / IdStory Hub - 8 (Aug 07 - Sep 04)
Actions #30

Updated by Martin Kolombo about 1 year ago

  • Sprint changed from Sprint PoC / IdStory Hub - 8 (Aug 07 - Sep 04) to Next Backlog (Oct 30 - Nov 13)
Actions #31

Updated by Martin Kolombo about 1 year ago

  • Sprint deleted (Next sprint candidates (Oct 30 - Nov 13))
Actions

Also available in: Atom PDF