I have an ADMIN group and a USER group. My data looks something like this raw:
ID ---------- NAME --------- SECTOR
0001 John A
0002 John H
0024 John A
0011 John H
0045 John A
The ADMIN group should only be able to see A, and the USER group should only be able to see H.
How can I customize the gridview in Apex to filter it based on authorization/groups?
Since you are using APEX built-in groups, there is a function APEX_UTIL.GET_GROUPS_USER_BELONGS_TO that can help you here. It returns a comma-separated list of the groups the user belongs to. So you could use it something like this: