This makes it possible to use this app against any meeting room by providing our app with our rooms ID in its URL. Now as a prerequisite, I’m going to let you know that we’ll be working with an input to this flow which will further be a parameter input to our app which will be our room id in Azure AD. I’m going to see if I can get myself some data to work with in my app now. Now I could start to build out my UI here, but I’d also like some data to work with really. In my solution I’m going to start by creating a new Canvas App. I’m going to call mine ‘Meeting Room Bookings’. So, now we can start to do some development. You could store this in Azure Key Vault, but to keep things simple in this post, we’re just going to store it in an environment variable in a moment. Take a quick note of your secret value before refreshing this page so that we can reference it in a moment. Hint hint, the default isn’t the highest because it’s supposed to be a level of security □ Give it a description and set when you want it to expire. Head over to ‘Certificates & secrets’ and select ‘new client secret’. Now… that’s your permissions added to your app, registered in Azure AD, but we need a way to access this app’s permissions and abilities from Power Automate. ![]() Select your permissions in your list and select ‘Grant admin consent for ’. We need Global Admin privileges in Azure AD to be able to do the next step:įrom here you’ll need to grant admin consent against these permissions for your tenant. Then add this permission to your app registration. Then select application permissions and search for the permission above. We’ll be needing the following application permissions from Microsoft Graph to get the data we need:Ĭalendars.Read – This will let us read the mailbox calendars in our organisation.Ĭlick ‘Add a permission’ and select Microsoft Graph under Microsoft APIs. Here we need to give our app registration some relevant API permissions so it can get to the data that we want to retrieve. Search for and select Azure Active Directory. So for the purposes of understanding this I’m going to assign myself full permissions to see room calendars, but you might want to assign yourself less permissions or you might not even be allowed full permissions to your tenants data for this.Īnyway, to get the permissions we’ll need to interact with the graph API here, we’ll need to create an app registration in Azure AD with the appropriate API permissions against it and a client secret to access it. Now in my case, I had to produce a solution where my app could access any meeting room’s calendar, but this requires a nice amount of permissions in my tenant. So first we’re going to need to make sure we can access what we need to get the data we need. ![]() I explored a few ways of doing this, and in this post I’m going to show you how to do it using Power Apps, Power Automate, an Azure App Registration and the Graph API! A bit of configuration before we start some dev… Recently I had a project where I needed to display a room calendar in Power Apps.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |