I used query_sites() api methods instead of get_sites_dataframe and in Tableau cloud it is not supported as per the error
{"error":{"summary":"Forbidden","detail":"Sites query is unsupported for Tableau Cloud.","code":"403069"}}
Any idea can we use single PAT and login into multiple sites in tableau