Skip to main content

Properties used in JDBC user store manager

You're reading Identity & Access Management 7.0.0. The newest release is 7.3.0, and Cloud has the newest features. Go to the newest release

Following are the properties that can be configured in JDBC user store manager.


Property IdPrimary user store PropertySecondary user store PropertyDescription
ReadGroupsread_groupsReadGroups

When ReadGroups is set to false, it indicates whether groups should be read from the user store. If this is disabled, none of the groups in the user store can be read, and the following group configurations are NOT mandatory: GroupSearchBase, GroupNameListFilter, or GroupNameAttribute.

Default : true
Possible values:
true: Reads groups from user store
false: Does not read groups from user store

WriteGroupswrite_groupsWriteGroups

Indicates whether groups should be written to the user store

Default : true
Possible values:
true : Writes groups to user store
false : Does not write groups to the user store, so only internal roles can be created. The value of the ReadGroups property determines whether the existing user store groups can be read or not.

PasswordHashMethodpassword_hash_methodPassword Hashing Algorithm

Specifies the Password Hashing Algorithm used to hash the password before storing it in the user store
Possible values:
SHA - Uses SHA digest method including SHA-1 and SHA-256
MD5 - Uses MD 5 digest method
PLAIN_TEXT - Plain text passwords PBKDF2 – A modern, NIST recommended key derivation function that reduces the risk of brute-force attacks

If you just enter the value `SHA`, it will be considered as `SHA-1`. It's always better to configure an algorithm with a higher bit value so that the digest bit size would be increased.
The default value for JDBC user stores is SHA-256.

UsernameJavaRegExusername_java_regexUsername RegEx (Java)

This is the regular expression used by the back-end components for username validation. By default, strings with non-empty characters having a length of 3 to 30 are allowed. You can provide ranges of alphabets, numbers, and ASCII values in the RegEx properties.

Default: ^[\S]{3,30}$

UsernameJava
ScriptRegEx
username_java_script_regexUsername RegEx (Javascript)

The regular expression used by the front-end components for username validation

Default: ^[\S]{3,30}$

UsernameJavaReg
ExViolationErrorMsg
username_java_reg_ex_violation_error_msgUsername RegEx Violation Error Message

Error message when the username doesn't match with username_java_regex

Default: Username pattern policy violated

PasswordJavaRegExpassword_java_regexPassword RegEx (Java)This is the regular expression used by the back-end components for password validation. By default, strings with non-empty characters having a length of 5 to 30 are allowed. You can provide ranges of alphabets, numbers, and ASCII values in the RegEx properties.
Default: ^[\S]{5,30}$
PasswordJava
ScriptRegEx
password_java_script_regexPassword RegEx (Javascript)

The regular expression used by the front-end components for password validation

Default: ^[\S]{5,30}$

PasswordJavaReg
ExViolationErrorMsg
password_java_regex_violation_error_msgPassword RegEx Violation Error Message

Error message when the Password is not matched with passwordJavaRegEx

Default: The password length should be within 5 to 30 characters.

RolenameJavaRegExrolename_java_regexRole Name RegEx (Java)

This is the regular expression used by the back-end components for role name validation. By default, strings with non-empty characters having a length of 3 to 30 are allowed. You can provide ranges of alphabets, numbers, and ASCII values in the RegEx properties.

Default: [a-zA-Z0-9._-|//]{3,30}$

MultiAttribute
Separator
multi_attribute_separatorMultiple Attribute Separator

This property is used to define a character to separate multiple attributes. This ensures that it will not appear as part of a claim value. Normally “,” is used to separate multiple attributes, but you can define ",,," or "..." or a similar character sequence.

Default: “,”

MaxUserName
ListLength
max_user_name_list_lengthMaximum User List LengthThis controls the number of users listed in the user store of WSO2 Identity Server. This is useful when you have a large number of users and do not want to list them all. Setting this property to 0 displays all users. (Default: 100)

In some user stores, there are policies to limit the number of records that can be returned from a query. By setting the value to 0, it will list the maximum results returned by the user store. If you need to increase this number, you need to set it in the user store level.
Eg: Active directory has the MaxPageSize property with the default value of 100.
MaxRoleName
ListLength
max_role_name_list_lengthMaximum Role List LengthThis controls the number of roles listed in the user store of WSO2 Identity Server. This is useful when you have a large number of roles and do not want to list them all. Setting this property to 0 displays all roles. (Default: 100)

In some user stores, there are policies to limit the number of records that can be returned from a query. By setting the value to 0, it will list the maximum results returned by the user store. If you need to increase this number, you need to set it in the user store level.
Eg: Active directory has the MaxPageSize property with the default value of 1000.
UserRolesCacheEnableduser_roles_cache_enabledEnable User Role CacheThis is to indicate whether to cache the role list of a user. (Default: true)

Possible values:
false: Set it to false if the user roles are changed by external means and those changes should instantly reflect in the Carbon instance.
CaseInsensitiveUsernameproperties.CaseInsensitiveUsernameCase Insensitive UsernameThis enables the case insensitivity of the user's username. Default value is true for this configuration.
Eg: If a user's username is test, that user can also use the username as TEST.
CaseInsensitiveAttributesproperties.CaseInsensitiveAttributesCase Insensitive Attributes

This enables case insensitivity of the user attributes.

Default : false

IsBulkImportSupportedproperties.IsBulkImportSupportedIs Bulk Import Supported

Enables bulk import support for the user store.

Default : true

StoreUserAttribute
ValueAsUnicode
properties.StoreUserAttributeValueAsUnicodeStore User Attribute Value As Unicode

Applicable only to MSSQL user stores. Specifies whether user attributes are stored as Unicode (true) or plain text (false). To ensure compatibility with non-ASCII characters, it's recommended to set this property to true.

Default : false

Was this page helpful?