{"id":10200,"date":"2023-07-11T21:02:00","date_gmt":"2023-07-12T02:02:00","guid":{"rendered":"https:\/\/www.rushworth.us\/lisa\/?p=10200"},"modified":"2023-08-02T14:06:17","modified_gmt":"2023-08-02T19:06:17","slug":"tableau-postgresql-query-finding-all-datasources-of-name-or-type","status":"publish","type":"post","link":"https:\/\/www.rushworth.us\/lisa\/?p=10200","title":{"rendered":"Tableau PostgreSQL Query: Finding All Datasources of Name or Type"},"content":{"rendered":"\n<p>I frequently need to find details on a data source based on its name and find all data sources of a particular type. Particularly, the Microsoft Graph permissions required to use Sharepoint and OneDrive data within Tableau changed &#8212; I needed to reach out to individuals who use those data types to build a business case for the Security organization to approve the new permissions be added to our tenant. <\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: sql; title: ; notranslate\" title=\"\">\n-- Query to find all data sources of a specific type or name \nselect system_users.email, datasources.id, datasources.name, datasources.created_at, datasources.updated_at, datasources.db_class, datasources.db_name\n, datasources.site_id, sites.name as SiteName, projects.name as ProjectName, workbooks.name as WorkbookName\nfrom datasources\nleft outer join users on users.id = datasources.owner_id\nleft outer join system_users on users.system_user_id = system_users.id\nleft outer join sites on datasources.site_id = sites.id\nleft outer join projects on datasources.project_id = projects.id\nleft outer join workbooks on datasources.parent_workbook_id = workbooks.id\n-- where datasources.name like &#039;%Sheet1 (LJR Sample%&#039;\nwhere datasources.db_class = &#039;onedrive&#039;\norder by datasources.name\n;\n\n<\/pre><\/div>","protected":false},"excerpt":{"rendered":"<p>I frequently need to find details on a data source based on its name and find all data sources of a particular type. Particularly, the Microsoft Graph permissions required to use Sharepoint and OneDrive data within Tableau changed &#8212; I needed to reach out to individuals who use those data types to build a business &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1852],"tags":[1822],"class_list":["post-10200","post","type-post","status-publish","format-standard","hentry","category-tableau","tag-tableau"],"_links":{"self":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10200"}],"version-history":[{"count":1,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10200\/revisions"}],"predecessor-version":[{"id":10201,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=\/wp\/v2\/posts\/10200\/revisions\/10201"}],"wp:attachment":[{"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rushworth.us\/lisa\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}