Hi Alan,
I haven't had the time to test this fully but i think you need an expression along the lines of:
select * from groupuser where groupname in (
select distinct groupname from groupuser where groupname in (select groupname from groupuser where userid = :RECEIVEDBY))
and userid = :username;
This returns a list of groups that match between the ReceivedBy user and the current logged on user.
So if the logged on user is not in any of the groups that the ReceivedBy user is a member of then you could make it Qualified so these records are not displayed.
One thing you may also need to validate is to only consider the groups that have access to the Incidents application as you may have some groups that all users are in and this would not work.
Hope this at least gives you some ideas to progress
------------------------------
Steve Lee
Maximo Technical Sales Specialist
IBM
Leeds
------------------------------