4.9 Restricted Effective Rights Query

The query below illustrates how to perform several restrictions when querying the Effective Rights table.

First, the like operator is used to restrict the trustees to those in the FewUsers Organization. The Object is restricted to dward0.FewUsers by a simple equality comparison. Finally, the attributes are limited to [Entry Rights]. This query lists the rights of the trustee to operate on the dward0.FewUsers entry as a whole. The query is further restricted to retrieve the value of only the Browse and Delete privileges. The result table illustrates the typical situation where all trustees have browse privileges but none have delete privileges.

SQL Statement

  SELECT "Object Name", "Trustee Name", "Attribute", "Browse", "Delete" 
 
 FROM "Effective Rights" 
 
 WHERE "Trustee Name" LIKE ’*.FewUsers’ AND "Object Name" = ’dward0.FewUsers’ 
 
 AND "Attribute" = ’[Entry Rights]’
 

Result Table

The query produces a table similar to the following. The zeros in the rights columns mean FALSE (the trustee does not have this right), and the ones TRUE (the trustee does have this right).

Table 4-8 Restricted Effective Rights Query Result Report

Object Name

Trustee Name

Attribute

Browse

Delete

dward0.FewUsers

cjohnson0.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson1.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson2.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson3.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson4.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson5.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson6.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson7.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson8.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

cjohnson9.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward0.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward1.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward2.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward3.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward4.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward5.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward6.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward7.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward8.FewUsers

[Entry Rights]

1

0

dward0.FewUsers

dward9.FewUsers

[Entry Rights]

1

0