How do I check user access for given SharePoint site using power automate

I have a requirement to write a Flow using power automate. The requirement is to check if a user has access to given SharePoint site. Here SharePoint site address will be given as input. I'm wondering how to achieve this using REST API in power automate.