Adjusting reportingunits query for various roles