code: def permission_list(self, token, **kwargs):
          
          return self._realm.client.get(
              self.well_known['policy_endpoint'],
              headers=self.get_headers(token),
              **kwargs
          )
docs: Querying permission
  
          https://www.keycloak.org/docs/latest/authorization_services/index.html#querying-permission
  
  
          :param str token: client access token
          :param str resource: (optional)
          :param str name: (optional)
          :param str scope: (optional)
  
          :rtype: dict