Find Effective Permissions of User in Group using Confluence Cloud REST API

Confluence allows restricting content to groups outside of groups in space permissions.
This is my scenario
Here ,U refers to user and G refers to group and P refers to Page

I want to know that U3 in P1 is allowed to view
and U4, U5 are allowed to view P2.

Best possible option-
Finding members of group and then hitting ( for each user.
But this is not possible in my case

What I am really looking for is -

  1. Any API that gives effective restrictions/permissions after resolving groups.
  2. Any API like Check content permission API that gives hasPermission value at user level.
    Any other alternative if possible?