none
Search Scope XPATH Filter for 'department' and 'manager'? RRS feed

  • Question

  • Hi,

    Is there a way to create a Search Scope Filter, to show all the users in the department that I currently am in? As in, look at my department attribute and dynamically generate a Search Scope Filter?

    Or to show all users where I am their 'manager'? (I = the user doing the FIM Portal search)

    thanks,

    DW


    • Edited by D Wind Wednesday, February 5, 2014 1:48 AM
    Wednesday, February 5, 2014 1:48 AM

Answers

  • My Direct Reports:

    /Person[Manager = '%LoginID%']

    My Team:

    /Person[Manager = /Person[ObjectID = '%LoginID%']/Manager]

    My Department:

    /Person[Department = /Person[ObjectID = '%LoginID%']/Department]

    Note: Department will only work if the Department attribute is a reference attribute to Department objects.
    • Edited by Adam Weigert Wednesday, February 5, 2014 7:13 PM
    • Marked as answer by D Wind Friday, February 7, 2014 12:56 AM
    Wednesday, February 5, 2014 7:03 PM

All replies

  • Is there a way to create a Search Scope Filter, to show all the users in the department that I currently am in? As in, look at my department attribute and dynamically generate a Search Scope Filter?


    Not that I know, but you can restrict with an MPR that users just see other users in their own department.


    Or to show all users where I am their 'manager'? (I = the user doing the FIM Portal search)

    User can see his\her manager in "My profile".

    Wednesday, February 5, 2014 1:27 PM
  • My Direct Reports:

    /Person[Manager = '%LoginID%']

    My Team:

    /Person[Manager = /Person[ObjectID = '%LoginID%']/Manager]

    My Department:

    /Person[Department = /Person[ObjectID = '%LoginID%']/Department]

    Note: Department will only work if the Department attribute is a reference attribute to Department objects.
    • Edited by Adam Weigert Wednesday, February 5, 2014 7:13 PM
    • Marked as answer by D Wind Friday, February 7, 2014 12:56 AM
    Wednesday, February 5, 2014 7:03 PM
  • Thanks Adam, will have to work these Xpaths and some MPRs out to get it to work as we want, but thank you for the statements.

    regards.

    Friday, February 7, 2014 12:56 AM