none
Group criteria xPath to get multiple object types as members

    Question

  • This controls the membership of my groups. With this xPath, the members are the Groups.

    /Group[PARENT_ORGANISATIONS_ID = '750547d8-8147-4c74-85b1-c1ec2bded963']

    I also need the membership of my group to contain users.

    /Person[Description= 'Constant']

    So what i need, is the entire xPath where both groups and users are contained.

    This is not correct, but this is what i wan't to do.
    [(/Group[PARENT_ORGANISATIONS_ID = '750547d8-8147-4c74-85b1-c1ec2bded963']) or (/Person[Description= 'Constant'])]

    any pointers`?


    /Frederik Leed

    Thursday, June 27, 2013 12:55 PM

Answers

  • Frederik,

    Try using the pipe symbol | -- it functions kind of like the union operator in SQL queries.

    /Group[PARENT_ORGANISATIONS_ID = '750547d8-8147-4c74-85b1-c1ec2bded963'] | /Person[Description= 'Constant']


    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

    • Marked as answer by FrederikLeed Thursday, June 27, 2013 5:57 PM
    Thursday, June 27, 2013 4:43 PM

All replies

  • Hi Frederik,

    You will need to search all objects for those criteria; FIM does not seem to like different object types defined in an XPATH filter.  So, your filter would look something like this:

    /*[(PARENT_ORGANISATIONS_ID = '750547d8-8147-4c74-85b1-c1ec2bded963') or (Description= 'Constant')]

    Cheers,

    Marc


    Marc Mac Donell, VP Identity and Access Solutions, Avaleris Inc.
    http://www.avaleris.com

    Thursday, June 27, 2013 4:12 PM
  • Frederik,

    Try using the pipe symbol | -- it functions kind of like the union operator in SQL queries.

    /Group[PARENT_ORGANISATIONS_ID = '750547d8-8147-4c74-85b1-c1ec2bded963'] | /Person[Description= 'Constant']


    David Lundell, Get your copy of FIM Best Practices Volume 1 http://blog.ilmbestpractices.com/2010/08/book-is-here-fim-best-practices-volume.html

    • Marked as answer by FrederikLeed Thursday, June 27, 2013 5:57 PM
    Thursday, June 27, 2013 4:43 PM
  • Fantastic David!

    @Marc in my case that would result in something not desired.


    /Frederik Leed

    Thursday, June 27, 2013 5:57 PM