Users Collection

    Example    Methods    Properties

A Users collection contains all stored CdbUser objects of a CdbWorkspace or CdbGroup object (Microsoft Jet workspaces only).






Remarks

You can append an existing CdbUser object to the Users collection of a CdbGroup object to give a user account the access permissions for that CdbGroup object. Alternatively, you can append the CdbGroup object to the Groups collection in a CdbUser object to establish membership of the user account in that group. If you use a Users or Groups collection other than the one to which you just appended an object, you may need to use the Refresh method.

The Microsoft Jet database engine predefines two CdbUser objects named Admin and Guest. The user Admin is a member of both of the CdbGroup objects named Admins and Users; the user Guest is a member only of the CdbGroup object named Guests.

To refer to a CdbUser object in a collection by its ordinal number or by its Name property setting, use either of the following syntax forms:

Users[0]

Users["name"]