AllPermissions Property

   Applies To

Returns all the permissions that apply to the current UserName property of the CdbContainer or CdbDocument object, including permissions that are specific to the user as well as the permissions a user inherits from memberships in groups (Microsoft Jet workspaces only).

Syntax

LONGGetAllPermissions(VOID);

Remarks

For any CdbContainer or CdbDocument object, the AllPermissions property may include the following.

Constant The User Can
dbSecReadDef Read the table definition, including column and index information.
dbSecWriteDef Modify or delete the table definition, including column and index information.
dbSecRetrieveData Retrieve data from the CdbDocument object.
dbSecInsertData Add records.
dbSecReplaceData Modify records.
dbSecDeleteData Delete records.

In addition, the Databases container or any CdbDocument object in a Documents collection may include the following.

Constant The User
dbSecDeleteData Can delete records.
dbSecDBAdmin Can replicate the database and change the database password.
dbSecDBCreate Can create new databases. This setting is valid only on the Databases container in the workgroup information file (System.mdw).
dbSecDBExclusive Has exclusive access to the database.
dbSecDBOpen Can open the database.

This property contrasts with the Permissions property, which returns only the permissions that are specific to the user and doesn't include any permissions that the user may also have as a member of groups. If the current value of the UserName property is a group, then the AllPermissions property returns the same values as the Permissions property.