code: def get_permissions(self, user_id):
          
          response = self.request(
              "{0}/{1}/permissions".format(self.version, user_id), {}
          )["data"]
          return {x["permission"] for x in response if x["status"] == "granted"}
docs: Fetches the permissions object from the graph.