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
image

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 (https://developer.atlassian.com/cloud/confluence/rest/api-group-content-permissions/#api-wiki-rest-api-content-id-permission-check-post) 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.
    Or
  2. Any API like Check content permission API that gives hasPermission value at user level.
    Or
    Any other alternative if possible?