Manager field related logic RRS feed

  • Question

  • Hi,

    Is there a way to have some FIM logic along these lines:

    "If person X is a Manager, then perform the following logic"

    I do not believe FIM has a field associated with the person object like "isManager".

    Has anyone done something similar perhaps?



    Thursday, March 10, 2016 8:00 PM

All replies

  • Yes I have done this.  You need to write some code to query MV.

    If the manager ID is part of the user object, then that is easy.

    Name = Joe

    Last Name = Smow

    EmplID = 000

    ManagerID =111


    Last Name = Smith

    EmplID =111

    ManagerID = 222

    So, the employeeID of manager is ManagerID in user object.

    For every MVEtry - find if this EmplID is ManagerID

    I have some code, but not in handy.

    Nosh Mernacaj, Identity Management Specialist

    Thursday, March 10, 2016 8:24 PM
  • What determines if someone is a manager? And what task are you looking to perform?  The answer to the second question determines whether the code needs to be in a MA rules extension or a MV rules extension. 

    If the attribute has a value if manager, otherwise null, you can do a simple presence check if (csentry["attribute"].IsPresent) {//do something}  or if (mventry["attribute"].IsPresent) { // do something}


    Jeff Ingalls

    Friday, March 11, 2016 1:25 AM
  • To further elaborate.

    HR Feed has Manager ID (which is the manager's employeeID) in User Profile, as I illustrated above.

    1. Extend MV schema - add attribute ManagerID as indexed string

    2. Extend MV schema - add attribute IsManager as Boolean

    3. During Import from HR, populate ManagerID

    3. Write and import advanced flow rule in HR Ma  employeeID --> isManager

    if EmployeeID is present in the MV as ManagerID (someone has this as manager), then isManager=true, else isManager=False.

    Nosh Mernacaj, Identity Management Specialist

    • Proposed as answer by Nosh Mernacaj Tuesday, March 15, 2016 10:46 AM
    Friday, March 11, 2016 3:42 PM
  • So using these methods, could we land up with a Portal Set that is comprised of people that are 'managers'?
    Tuesday, March 15, 2016 2:00 AM
  • Absolutely. Create a bolean attribute isMamager in portal. Sync it with isMamager from MV. Create set "all managers" where isManager=true

    Nosh Mernacaj, Identity Management Specialist

    Tuesday, March 15, 2016 10:46 AM