| Title | Description | Author |
|---|---|---|
| Give Me TAP | This repo is created to help build a quick PowerApps application that helps your users generate TAPby themselves and makes your administrators/helpdesk job easier. | purishd |
Often customer's end users need TAP for either first time use when they join the organisation or for other sceanrios later. This task is usually done by adminstrators manually as per design. However, what if customers could build a user facing application that could give them TAP whenever they need it. Isn't that better than having to manually generate a TAP.
This can be easily achieved by a simple PowerApps application which reduces operational overhead by giving control to the end users. Off course, while designing the application cutomer needs to consider security implications of handing this application to end users and design security controls around TAP generation and usage etc.
From technical implementation perspective, following are high level steps.
- Build a Power App UI that will collect user's UPN. This is the front-end that will be used by the end user to generate TAP ans display it on the screen itself.
- Build Power Automate flow that will read the user's UPN and generate TAP by calling Graph API.
This is how my sample Power App looks like. Follow below guidelines to create a similar Power App or use your own creativity to extend this Power App and make it even better.
Following controls are being used in this super simple app.
- An Image for customer logo.
- Label for the name of the app.
- Label and text input to get the user UPN.
- Button to share TAP that will hook into my Power Automate flow.
Calling below code on "OnSelect" property of the Share TAP button. This code will help set the buttonPressed and then call Power Automate flow and set the value of variable newTAP to generated TAP.
If(IsBlank(UPNTextInput.Text), Notify("Please enter user UPN",NotificationType.Error),
Set(buttonPressed,"shareTAPButton");
Set(newTAP,TAPFlow.Run(UPNTextInput.Text).tap););
-
A hidden label that only lights up when the TAP is generated and shows the generated TAP on the screen for end user to view it.
Making this label visible when share TAP button is pressed.
If(buttonPressed = "shareTAPButton", true, false)
Setting the "Text" property of this button to variable newTAP. This variable is blank initially but its value is set when the Power Automate flow sends the TAP back to the Power App.
- A reset button that I am using to quickly reset the values of controls. Feel free to use any other ways as you like to reset the form values.
Reset(UPNTextInput);
Set(newTAP,"")
Follow below steps to create Power Automate Flow. This is how your overall flow will look like once all the steps are added to it.
-
Create a new instant cloud flow.
-
Choose PowerApps as trigger of this flow.
-
Intialize a variable that will collect the user UPN value from Power Apps.

-
Get a graph token using the client credential flow. You can choose other ways to get a graph token as you prefer.
-
Parse the JSON output from above step to get the access token.
-
Make a Graph API call to generate TAP.
-
Parse the JSON output from above step to get the newly genrated TAP.
-
Add compose action to get value of TAP.
-
Send the generated TAP to Power App in a variable.








