How to create a set which contains all the distinct values from another resource
Hi All I want to create a set which contains all the unique displayNames (cases and spaces ignored) from all the user objects. Set should get updated as and when the user object is updated. Is this possible? TIA Sachin
August 18th, 2010 12:28pm

from my point of view your approach is wrong - a set always contains objects, not values. I suppose you need it for unique displayName generation activity, right? if so - just use enumerateResource activity for uniqueness checks
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 1:09pm

Thanks Evgeniy for the reply. Basically I am trying to model the Many to One and One to Many relationship. Here is what I want to accomplish. 1. Exract all the unique displayName from all the user objects. More than one user may have the same displayName. 2. Provision the unique displayName in some external system which returns an ID for it. 3. Update all the user objects with the ID returned in step 2 for the matching displayName. Step 1 to step 2 -> Many to one Step 2 to step 3 -> One to many displayName is just an example. - Sachin
August 18th, 2010 1:56pm

Hi Sachin, Your approach looks rather complicated. What you are trying to do, basically, is having two attributes, DisplayName and DisplayNameID (just for this example's sake) where DisplayNameID is some ID, function of DisplayName, returned by an external system; is this right? If so, I think that the easiest approach would be to run a custom activity that gets the computed value for DisplayNameID from the external system and updates the attribute. This activity should be triggered whenever a request modifies DisplayName. Hope this helps. Cheers, PaoloPaolo Tedesco - http://cern.ch/idm
Free Windows Admin Tool Kit Click here and download it now
August 18th, 2010 5:08pm

Hi Paolo Step 2 is must in our scenario. Basically, we want to create a contact object in AD for each unique value of an attribute (say displayName) and then update the actual user object with DN. I think, custom activity might work. Will give it a try. Regards Sachin
August 18th, 2010 5:18pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics