In a group based access control mechanism wherein each of a plurality of access control groups has an associated group number and a set of one or more users assigned thereto, a method for controlling access to objects, comprising the steps of:
- associating each group's group number with a unique prime number;
- assigning each user a user number that is a given function of the group numbers for the groups to which the user is assigned;
- assigning each object an object number that is a given function of the group numbers of the groups having access to the object;
- and
- determining a greatest common divisor of a given user's user number and a given object's object number to determine whether the given user may access the given object.