DatabasePrivilege

The name of the privilege that specifies the databases that all roles can access.

When you request a SecurityInfo string for a user, the Community component inspects the value of the database privilege for the role that the user belongs to. If the privilege is set for that role, Community uses the value to set a database restriction in the SecurityInfo string. When you use the generated SecurityInfo string to query the Content component, Content returns documents from only these databases.

To generate SecurityInfo strings for a user without any database restriction, leave the database privilege unset for that user's role.

When AutoSetDatabases is set to True (the default), Community automatically creates a database privilege for the default role. To remove the database privilege for the default role, set AutoSetDatabases to False and ensure that you remove any existing privilege value (for example, by using the RoleDeletePrivilege or RoleRemovePrivilegeFromRole actions).

Type: String
Default: databases
Required: No
Configuration Section: Role
Example: DatabasePrivilege=databases
See Also: AutoSetDatabases
DefaultRoleName