Checking uniqueness of an attribute during creation
Hi,In the release notes I'm reading the following:
Portal User Interface
You can now copy and paste a vertical list from Excel to the Resource Picker input box. This is especially useful for doing bulk Adds.
The UOC text box now lets you check uniqueness using a custom XPATH statement that you provide.
Note
This only works in Create mode, not in Edit mode. Attempting this in Edit mode may cause the check to be done when its not intended.Can somebody provide an example how to do that for for example the AccountName attribute?thanks!Jorge de Almeida Pinto [MVP-DS / AD DS TechNet Forums Moderator]
December 10th, 2009 1:13am
Hi Jorge,You can do this by adding the "UniquenessValidationXPath" property as below,
1. Go to "Resource Control Display Configuration" and choose "Configuration for Group Creation"
2. Click export configuration and save to any location
3. Modify this section by adding the bold line.
<my:Control my:Name="Alias" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=MailNickname.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=MailNickname}">
<my:Properties>
<my:Property my:Name="Required" my:Value="true"/>
<my:Property my:Name="HintPath" my:Value="Hint"/>
<my:Property my:Name="Text" my:Value="{Binding Source=object, Path=MailNickname, Mode=TwoWay}"/>
<my:Property my:Name="MaxLength" my:Value="128"/>
<my:Property my:Name="RegularExpression" my:Value="{Binding Source=schema, Path=MailNickname.StringRegex}"/>
<my:Property my:Name="UniquenessValidationXPath" my:Value="/Group[MailNickname='%VALUE%']" />
</my:Properties>
</my:Control>
4. Click on the brows button and choose the modified file and submit the modification.
5. IISRESET.Thanks,Sri
Free Windows Admin Tool Kit Click here and download it now
December 10th, 2009 10:11am
HI Sri,Just tried it. Works like a charm. From a consistency point of view the behavior of this should not only work during creation only, but also during editsCheersJorgeJorge de Almeida Pinto [MVP-DS / AD DS TechNet Forums Moderator]
December 10th, 2009 11:45am
Hi Jorge,This is currently only supported in Create Mode for FIM 2010.Thanks,Sri
Free Windows Admin Tool Kit Click here and download it now
January 4th, 2010 8:28pm
Sri, Are there any plans for enabling the UniquenessValidationXPath for edit mode as well? //henrikHenrik Nilsson
Blog: http://www.idmcrisis.com
Company: Cortego (http://www.cortego.se)
January 5th, 2010 11:46am
Henrik,None at this time. I think it will be in consideration for future releases.Thanks,Sri
Free Windows Admin Tool Kit Click here and download it now
January 5th, 2010 8:18pm
Ok! Thanks!Henrik Nilsson
Blog: http://www.idmcrisis.com
Company: Cortego (http://www.cortego.se)
January 5th, 2010 9:04pm
You can limit permissions or the rcdc to make it read only in edit mode and prevent the issue, but yeah I would like that too.David Lundell www.ilmBestPractices.com
Free Windows Admin Tool Kit Click here and download it now
January 6th, 2010 12:42am
I know this is an older thread, but thought I would mention that this change also seems to work in Edit mode now.
September 8th, 2010 8:24pm
Hi, It appears to work but it does not work correctly. You cannot use the same XPATH validation filter from the CREATE mode in the EDIT mode. The XPATH validation filter has to be slightly different!
See:
http://blogs.dirteam.com/blogs/jorge/archive/2011/01/23/checking-uniqueness-of-an-attribute-in-fim-2010-during-the-edit-process.aspx
Cheers,
(HOPEFULLY THIS INFORMATION HELPS YOU!)
Ing. Jorge de Almeida Pinto
Senior Technical Consultant
MVP Identity & Access - Directory Services
http://blogs.dirteam.com/blogs/jorge/default.aspx
* This posting is provided "AS IS" with no warranties and confers no rights!
* Always test before implementing!
Jorge de Almeida Pinto [MVP-DS] (http://blogs.dirteam.com/blogs/jorge/default.aspx)
Free Windows Admin Tool Kit Click here and download it now
January 22nd, 2011 7:04pm