Does Utils.FindMVEntries have a scope limited to one objectType - or does it search the entire MV? RRS feed

  • Question

  • Would anyone know if Utils.FindMVEntries returns only object of the same type as object the search is running in the context of - or does it search all of MV and return all matching objects?

    The use case is a search for each user which would need to lookup the ID of a group from MV - a different object type in the MV.

    Many thanks,


    Tuesday, July 8, 2014 6:56 AM

All replies

  • FindMV Entries returns an array of MVEntry objects that meet the search criteria - these will be whatever object types. You then need to search again within the array for the objectType you want


    Tuesday, July 8, 2014 8:43 AM
  • Keep in mind the FindMVEntries is a real perfomance killer. If you have a lot of objects it would beway  more efficient to perform a -select where inner join- database querie directly from your extension against the FIMSync db.

    I've done that for exactly the same usecase which you have now. Provision specific authorizations to an app depending on its GroupID..

    Find me on linkedin:

    • Edited by Robin Gaal Wednesday, July 9, 2014 12:26 PM
    Wednesday, July 9, 2014 12:25 PM
  • Yes, good point, it can seriously slow up your syncs. Another technique to avoid using it is the "Reflector MA" where you create a view on the Metaverse then point a SQL MA at that view and import the attributes in question directly to the MV Object.


    Wednesday, July 9, 2014 1:58 PM