Validation of a group's display name
Hello All, Is there a way of validating the name of a Distribution List provided by the user while the user is requesting the creation of the group? I see that an Attribute could be validated using a Regular Expression provided during the definition of the Attribute in the Schema Management. I can do that for any new attribute I create. A Group's display name is captured in an attribute called as "Display Name". However, I am not able to set any Validation Rule/Reg Expression as I don't see the text box where this could be provided; as I do for any other custom attribute I add. Besides, this default attribute is bound to lot of other objects like, Email Templates, User...etc...I don't have any need to validate the Display Names of these other objects. I just need to validate the Display Name of a group. Could somebody please suggest me an approach? I was thinking of creating a custom attribute with the required validation string. Probably then the RCDC for the group creation,viewing & updating needs to be changed so that this custom attribute will receive the data provided by the user after validation. Is this the approach right? Is there any easier way of accomplishing this? Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
March 3rd, 2010 2:22am

There is an option in RCDC's to check uniqueness.. <my:Property my:Name="UniquenessValidationXPath" my:Value="/Group[MailNickname='%VALUE%']" />In the Text Box control, try adding this property.Eric
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 2:28am

Eric, The validation I am looking for is not uniqueness. The name of the group needs to follow a particular pattern like: ![CountryName][StateName][City][Building] Do you think this RCDC uniqueness check would help? Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
March 3rd, 2010 2:46am

No. Hmm.. Do you need to create all combinations of this pattern? You might just want to automate the generation of the groups by workflows using the Create Resource. Eric
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 3:34am

Hi Jameel,Approcah you suggested above of uisng the custom attribuet for RegEx validation is simpler solution. You can update the RCDC as below to include the regex of the custom attribute.I have used groupAttr as custom attribute of type indexed string with a RegEx and this does the validation and since the text is bound to DisplayName , value entered in the text box is assigned to the DisplayName of group <my:Control my:Name="Name" my:TypeName="UocTextBox" my:Caption="{Binding Source=schema, Path=DisplayName.DisplayName}" my:RightsLevel="{Binding Source=rights, Path=DisplayName}" my:Description="{Binding Source=schema, Path=DisplayName.Description}"> <my:Properties> <my:Property my:Name="Required" my:Value="true"/> <my:Property my:Name="MaxLength" my:Value="128"/> <my:Property my:Name="Text" my:Value="{Binding Source=object, Path=DisplayName, Mode=TwoWay}"/> <my:Property my:Name="RegularExpression" my:Value="{Binding Source=schema, Path=groupAttr.StringRegex}"/> </my:Properties> </my:Control> Thanks,Sri
March 3rd, 2010 3:46am

Thanks Sri. Looks like the attribute groupAttr will not be used for anything else other than for the regular expression. Right? It doesnt even need to be bound to the group object.. Am I right?Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 7:29am

Eric, Automation of the creation of these groups is the ideal way of doing it. Could you tell me little bit more about this approach? What kind of MPRs will I need to define for such an experience and what will be the trigger? Thanks & Regards, Jameel Syed Principal Consultant, fimGuru - Your window into simplified identities jameel.syed@fimguru.com - http://www.fimguru.com
March 3rd, 2010 7:33am

It needs to be bound to Group Object otherwise RCDC will not validate. If the attribute is not bound then RCDC will display an error indicating error in configuration.Thanks,Sri
Free Windows Admin Tool Kit Click here and download it now
March 3rd, 2010 9:33am

First off, I would probaby create a new resource type of Location since all of the other attirbutes would exist on it and a new attribute called LocationRef on the Person Resource.1) Create a custom workflow that performs the following steps on new location add: a) Enumerate Groups where DisplayName = [CountryName][StateName][City][Building] b) If none exist, then Use the Create Resource activity to create a new group object If you want a dynamic group then set a filter of /Person[LocationRef=<LocationResourceID>]2) Create an Workflow and MPR to call #1 on Location AddYou didn't menition how you would populate these values on the person. If you are getting the Building info from a Sync source, you may need to write a custom activity to look up the reference value and populate it.Eric
March 3rd, 2010 4:13pm

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

Other recent topics Other recent topics