Let's assume I have 1 userPool and 2 groups: group_a and group_b.
A user can be in group_a or in group_b or without a group.
Using cognito API how can I implement access control following the following rule:
group_a users can ListUsers of every user in the pool.
group_b users can ListUsers of users from group_b and without a group.
Users without a group can't ListUsers.
Reading through AWS docs, I couldn't find a way to do without managing 2 userPools and cross the identity pools and roles.
Is it possible to do it in a single UserPool?