I have finished this modification. I added a isPrimaryContact() function to the client class, and then changed a few SQL statements..Example:This was the original $qwhere in tickets.inc.php$qwhere = sprintf(' WHERE ( ticket.user_id=%d OR collab.user_id=%d )', $thisclient->getId(), $thisclient->getId());I have now modified that to this:if($thisclient->isPrimaryContact() > 0) { $getOrg = sprintf('SELECT `org_id` FROM '.USER_TABLE.' WHERE `id`=%d', $thisclient->getId()); $getOrg = db_query($getOrg); $getOrg = db_fetch_array($getOrg); $getOrgUsers = sprintf('SELECT `id` FROM '.USER_TABLE.' WHERE `org_id`=%d', $getOrg); $getOrgUsers = db_query($getOrgUsers); $orgUsers = array(); while($getOrgUser = db_fetch_array($getOrgUsers)) { $orgUsers = $getOrgUser; } $orgUsers = implode(",", $orgUsers); $qwhere = sprintf(' WHERE ( ticket.user_id IN (%d) OR collab.user_id IN (%d) )', $orgUsers, $orgUsers);}else { $qwhere = sprintf(' WHERE ( ticket.user_id=%d OR collab.user_id=%d )', $thisclient->getId(), $thisclient->getId());}So when the script is ran, it is querying for tickets where any member of their organization is the owner or a collaborator. I will see about publishing this modification as well.Thanks