Add a new custom property in a global security configuration or in a security domain configuration
Custom properties are arbitrary name-value pairs of data, where the name is a property key and the value is a string value used to set internal system configuration properties. Defining a new property enables us to configure settings beyond those available in the administrative console. We can add new security custom properties in a security configuration or in a security domain configuration.
Add a new custom property in a global security configuration using the administrative console
- Click Security > Global security > Custom properties.
- Click New,
- Enter the property key name in the Name field.
Each property key name must be unique. If the same name is used for multiple properties, the value specified for the first property is used.
Do not start your property names with was, because this prefix is reserved for properties that are predefined in the application server.
- Enter the property value in the Value field.
- Click Apply or Save.
We can also use the -customProperties flag in the setAdminActiveSecuritySettings wsadmin command to add a new custom property in a global security configuration. See the SecurityConfigurationCommands command group for the AdminTask object article for more information about this command. For example:
wsadmin>AdminTask.setAdminActiveSecuritySettings('[-customProperties ["com.ibm.websphere.security.test=false"]]')Add a new custom property in a security domain configuration using the administrative console
- Click Security > Security domains.
- Select the global security domain we want to add a new custom property to.
- Click Custom properties.
- Click New.
- Enter the property key name in the Name field.
Each property key name must be unique. If the same name is used for multiple properties, the value specified for the first property is used.
Do not start your property names with was, because this prefix is reserved for properties that are predefined in the application server.
- Enter the property value in the Value field
- Click Apply or Save.
We can also use the -customProperties flag in the setAppActiveSecuritySettings wsadmin command to add a new custom property in a global security domain configuration. See the SecurityConfigurationCommands command group for the AdminTask object article for more information about this command. Use the -securityDomainName flag to specify the security domain where the custom property is located. For example:
wsadmin>AdminTask.setAppActiveSecuritySettings('[ -securityDomainName testDomain -customProperties ["com.ibm.websphere.security.test=false"]]')
Modifying an existing custom property in a global security configuration or in a security domain configuration Deleting an existing custom property in a global security configuration or in a security domain configuration Security custom properties Security custom property collection SecurityConfigurationCommands