{"id":4533,"date":"2025-05-19T10:24:12","date_gmt":"2025-05-19T09:24:12","guid":{"rendered":"https:\/\/www.lieben.nu\/liebensraum\/?p=4533"},"modified":"2025-05-19T10:24:12","modified_gmt":"2025-05-19T09:24:12","slug":"scanning-the-power-platform","status":"publish","type":"post","link":"https:\/\/lieben.nu\/liebensraum\/2025\/05\/scanning-the-power-platform\/","title":{"rendered":"Scanning the Power Platform"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">By default, the Power Platform does not allow service principals to use its API\u2019s, but this can be enabled easily.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">To allow M365Permissions to scan PowerApps, Flows etc:<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>Note the GUID of the service principal you&#8217;re using to scan with (a.k.a. the app id or client id)<\/li>\n\n\n\n<li>Open a powershell window<\/li>\n\n\n\n<li>Run the following code:<\/li>\n<\/ol>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\nInstall-Module -Name &quot;Microsoft.PowerApps.Administration.PowerShell&quot;\n\nAdd-PowerAppsAccount\n\nNew-PowerAppManagementApp -ApplicationId {APPID}\n<\/pre><\/div>\n\n\n<p class=\"wp-block-paragraph\">Where you replace {APPID} with the GUID from step 1<\/p>\n","protected":false},"excerpt":{"rendered":"<p>By default, the Power Platform does not allow service principals to use its API\u2019s, but this can be enabled easily. To allow M365Permissions to scan PowerApps, Flows etc: Where you replace {APPID} with the GUID from step 1<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[24],"tags":[],"class_list":["post-4533","post","type-post","status-publish","format-standard","hentry","category-m365permissions"],"_links":{"self":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4533","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/comments?post=4533"}],"version-history":[{"count":0,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/posts\/4533\/revisions"}],"wp:attachment":[{"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/media?parent=4533"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/categories?post=4533"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lieben.nu\/liebensraum\/wp-json\/wp\/v2\/tags?post=4533"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}