Create a Profile Rule using a “rule activation condition” with a defined Side Effect per the below
steps:
- Open the Configuration Manager admin applet.
- Select the Rules tab.
- Select the Add button.
- Enter a desired name and description.
- Select the check-box for “Is global rule with priority” and set its desired priority number.
- Select the check-box for “Use rule activation condition”.
- Select the Edit button.
- Add a condition with a desired name (ex. “1”).
- Select from the condition’s General tab, the checkboxes for Use action of “Check in New” and “Check in Selected”.
- Select from the condition’s Clauses tab, Field of “Type”, Operator of “Matches”, and Value of
“<desired dDocType>”. - Select from the Clauses tab, the Add button.
- Enter from the condition’s Side Effects tab, paste the following. The conditional statement can be any of the IDOC security checks: userHasRole, userHasAccessToAccount, or userHasGroupPrivilege,or other function suitable for the purpose. This example allows only users with the admin role to set the override format.
<$if not userHasRole("admin")$> <$IsOverrideFormat=false$> <$endif$>
- Select the Side Effect’s tab OK button.
- Select the Rule’s OK button.