Restrict or Disallow Using Spaces in Attribute Values
说明
You may have a requirement to restrict the use of spaces in an attribute value.
解决办法
Use the following steps to restrict the use of spaces in an attribute value:
Create a new Provisioning Policy Object or modify an existing Provisioning Policy Object.
Add a Property Generation and Validation Policy to the Policy Object.
After selecting the attribute for the Controller Property, check off '<attribute>' must match regular expression <value> from the list on the Configure Policy Rule page.
Click the <click to add value> link in the Edit policy rule section and paste in the following regular expression: ^((?!\s).)*$