Auto generation of a unique value
I need to create an integer custom attribute for persons, which should have a value inside a certain range and be unique for each user. Is there something out of the box to do this or is it necessary to write a custom activity? Thanks, PaoloPaolo Tedesco - http://cern.ch/idm
January 28th, 2010 4:32pm

Hi Paolo, The short answer is that you will need some custom activity development.Now for the longer answer:The Function Evaluator activity provides a RandomNum function that takes as input a range, and generates a number within that range. If the value for the integer needs to be automatically generated, and the intention is for it to be random, this activity can be used.Also, when defining your new integer attribute, you'll notice there are validation options in the schema wizard that allows you to specify the supported range of values. This will provide some automatic validation that the value of the integer is within the defined range. However, there is no default functionality that validates an attribute for uniqueness in FIM. For this you will need to develop a custom activity.Thanks,Nima
Free Windows Admin Tool Kit Click here and download it now
February 18th, 2010 9:19pm

Hi Nima,thanks for your answer.I have created a custom activity to do that, it consists just of an enumerateResources and an updateResource and it was rather easy to develop.Then I configured the activity to run whenever a user is created.Can more than one instance of the same activity be executed in parallel? I mean, there is the possibility that two instances of my activity run at the same time, find out the same unique value and set it in the attribute for two different objects?Thanks,PaoloPaolo Tedesco - http://cern.ch/idm
February 19th, 2010 11:52am

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

Other recent topics Other recent topics