Limiting visibility team-to-team for Gen 2 and Gen 3 apps equally

Hi all, any help would be much appreciated, I have been trying to set up permissions for our teams /departments so when they log in to the UI they only see their team and entities and Data. Since dynatrace is Midway through moving to Grail, I’ve been running into some issues where segregating team data via security context and boundaries doesn’t seem to be working. I’m hoping that there’s somebody out there that has done this and could share a working IAM configuration for the gen 3 applications to limit visibility team to team along with limiting visibility to the Gen 2 applications equally.

Hello

To best answer your question: do we talk about an already existing Dynatrace environment (including the requirement to give users access to “historic” data) or starting fresh, either as a whole or with new teams / departments?