-
Notifications
You must be signed in to change notification settings - Fork 4
Add AcmaConstant
Ryan Newington edited this page Sep 4, 2025
·
5 revisions
Creates a new constant in the ACMA database. Constants are global configuration values that can be referenced in rules, constructors, and declarative expressions throughout the ACMA system.
Add-AcmaConstant -Name <string> -Value <object>The unique name for the new constant
- Required: Yes
- Position: Named
- Pipeline input: No
- Accepts: String (must be unique within the database)
The initial value to assign to the constant
- Required: Yes
- Position: Named
- Pipeline input: No
- Accepts: String, Integer, Boolean, or other supported types
This cmdlet does not return any objects
Add-AcmaConstant -Name "mailSuffix" -Value "@acma.com"Add-AcmaConstant -Name "userOU" -Value "OU=Users,DC=acma,DC=com"
Add-AcmaConstant -Name "groupOU" -Value "OU=Groups,DC=acma,DC=com"Add-AcmaConstant -Name "maxPasswordAge" -Value 90
Add-AcmaConstant -Name "defaultQuotaMB" -Value 1024- Constant names must be unique within the ACMA database
- Once created, constants can be referenced in business rules using the syntax
%constantName% - Constants are commonly used for domain names, organizational units, default values, and other global configuration settings
- Use descriptive names to make business rules more readable and maintainable
- Consider grouping related constants with consistent naming conventions (e.g., "mail_", "ou_", "default_")