{"id":763,"date":"2018-01-04T01:00:36","date_gmt":"2018-01-04T09:00:36","guid":{"rendered":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/powerapps-administrator-app\/"},"modified":"2018-01-04T01:00:36","modified_gmt":"2018-01-04T09:00:36","slug":"powerapps-administrator-app","status":"publish","type":"power-apps","link":"https:\/\/www.microsoft.com\/en-us\/power-platform\/blog\/power-apps\/powerapps-administrator-app\/","title":{"rendered":"PowerApps Administrator App"},"content":{"rendered":"
In August 2018, we announced new Power Platform admin and maker connectors for PowerApps and Flow.\u00a0 These connectors provide access to the resources in the admin or maker scope.<\/p>\n
This allows you to more easily gain both insight, and control over your Power Platform estate. Using these connectors makes it possible to build a solution that matches your exact enterprise governance, administration and maintenance requirements.<\/p>\n
Recently, I built a PowerApp using these connectors that demonstrates how to manage environments, apps and app compliance. The aim of this app is to address a few common requirements that I ran into whilst working with various customers:<\/p>\n
Lets take a look at the administrator app.<\/p>\n
<\/p>\n
The screenshot above shows the app landing page. The pane on the left had side lists the environments in my tenant. When I click\/ select an environment the page updates by returning a list of all apps within the environment and some basic information about the environment itself.<\/p>\n
Each app in the environment is represented by an app tile.\u00a0 The tile contains information about the app, such as the title, app maker, governance compliance and form factor.\u00a0 Clicking on an app tile updates the user interface to provide more detailed information about the app:<\/p>\n
<\/p>\n
The screenshot above shows the app details.\u00a0 There is detailed information about the app and an area for administrative features (lower right). Each administrative feature or policy compliance has an indicator, quickly drawing your attention to any actions for this app.\u00a0 The screenshot shows a red indicator showing that the app was last published 72 days ago.\u00a0 This has been flagged as outside the enterprise policy, hence is highlighted with a red icon.<\/p>\n
Next to each administrative feature is an action, in the example we can resolve the publishing issue by clicking the ‘Publish App’ button.\u00a0 This will re-publish the app.<\/p>\n
The app indicates if the app author has agreed to a governance and usage policy. How does this work?<\/p>\n
To achieve this, I utilized a number of O365 applications:<\/p>\n
In my tenant I have a site collection for governance and usage of PowerApps.\u00a0 The policy page (screenshots below) is a modern page containing the policy text (dummy text in my example) and a Microsoft Forms web part.<\/p>\n
Top of page:<\/p>\n
<\/p>\n
Bottom of page:<\/p>\n
<\/p>\n
When a PowerApps app maker reads the policy, they select ‘I agree’ in the Microsoft Forms web part.\u00a0 Upon clicking ‘Submit’ a Microsoft Flow is triggered.\u00a0 The flow takes the output of the form submission and creates a SharePoint list item in a custom list containing the Email address of the user whom submitted the form:<\/p>\n
<\/p>\n
Back in the app…<\/p>\n
For each app, we have an indicator that shows if the app maker has agreed to the PowerApps governance and usage policy.\u00a0 To achieve this functionality, I used the SharePoint connector to connect to the governance list containing list items for each app maker that agreed to the policy.\u00a0 In the UI, we have a shape (circle) that is used as an indicator.\u00a0 The Fill property of this shape takes the app maker Email address and compares it against the SharePoint list.\u00a0 If the app finds a match, the fill is green (indicating the app maker agreed to the policy). If there is no match, then the fill is set to red:<\/p>\n
<\/p>\n