Getting Started with Microsoft Graph and Application Registration

Microsoft 365 Developer · Beginner ·📰 AI News & Updates ·7y ago

Key Takeaways

Registers an application with Azure AD v2.0 endpoint using Microsoft Graph and Application Registration

Full Transcript

hello everyone thanks for joining us ansara joined by Alisha and we're gonna be talking about Microsoft identity platform so Alexa tell me more about what is microfiber in the platform yeah the Microsoft identity platform allows developers to build applications that can sign in all Microsoft identities so organizational accounts also referred to as a trading accounts as well as personal Microsoft accounts and it also lets them get tokens to call Microsoft api's like Microsoft graph thanks so much for the introduction Alicia so how can we go about creating or integrating with the platform yeah so let's start in the Azure portal so if you navigate to portal AFRICOM and then we can go ahead and navigate to Azure Active Directory and under that we'll go to app registrations okay so that will bring us to the app registrations experience here and once we're there we can go ahead and click new registration and so that will bring up this registration page oh cool so here we can provide a name for our app so I'll just call this my test app next we can choose which kind of accounts we want to support so as I mentioned we can support organizational accounts we can choose if we want them to be part of this directory only this is the contoso directory or we can choose accounts in any organizational directory directory and lastly we can choose organizational accounts as well as personal Microsoft accounts okay so this is by far the biggest number of accounts that we can target and so we'll go ahead and choose that one and then lastly we can optionally provide a redirect URI the redirect URI is where the authentication response will be sent after the user authenticates so we'll say we're building a web app that's hosted locally and so over here we'll just enter localhost as our redirect URI okay so once we've filled in all that information we'll go ahead and click register and our app will be created wait that's it that's all it takes to create an app that's it so now the app is registered an application ID also referred to as a client ID is assigned to the application and this is the the piece that will be used code to refer to this registration we also see some additional details about the application like the supported account types that we selected the fact that a redirect URI was registered as well and then we can see some links to documentation and some steps to get started okay so this is about creating the app but what if I wanted to get some of my data using Microsoft graph how do I go about doing that yeah so to set up your app to request permissions you'll go ahead and navigate to this API permissions section here and then you'll select to add a permission that will bring up a variety of api's for you to choose from and we'll go ahead and select Microsoft graph and then we'll have a choice between delegated permissions or application permissions so delegated permissions are used when there is a signed in user present and application permissions are used when the application is running as a background service or a daemon okay so we'll go ahead and choose delegated permissions we'll have a user present in our app so then what kind of permissions would you like to request what's big calendar I'm I I want to build an app that uses somebody's calendar information or logging to users cabinet information okay let's go ahead and select to read users calendars so we check that and click to add permissions and then that is added to our list of requested permissions and we get a notification telling us that permissions have changed okay now because I'm signed in with an admin account I can also go ahead and grant admin consent for these permissions okay so I just will confirm that I want to do that mhm and once that's done the status is reflected here in the admin consent required status and so what this means is that when my users go to use my application they won't need to consent to these permissions okay awesome so what if my app has an or you know we have an architecture where we require a client certificate or a secret - - you know for the app so how do I go about accessing and configuring that piece yeah so you would go ahead and navigate to the certificates and secret section and let's say we want to use a client secret also referred to as an application password we will go ahead and click new client secret and provide a brief description and then we can choose when it will expire one year or two years or never okay so I'll just go ahead and say that it'll expire in one year and once once I click Add there I get the value of it so it's really important to copy this value because this is the value that I need for my secret and I won't be able to retrieve it after I'm only to generate a new secret if I if I lose this and it's important to also store it securely so thanks for showing that Leisha I see there are a lot of other options here and this and these played so can you tell me more about what what they get us any yeah so for the overview that it's that's already what we saw when we registered our application so we have the information about the app there for QuickStart if if your application matches the platforms that we have supported here it's an easy way for you to get your application started okay so you can go ahead and use one of those under branding you can choose you can change the name of your application or you can upload a logo you can provide links to your Terms of Service and Privacy statement typically these things appear on the consent prompt to when users are using your application okay under authentication we can see the redirect URI that we registered earlier as well some of as well as some other options under owners we can add owners to be able to register it be able to manage this registration as well so if we have a co-worker that's working with us on this project we can add them here okay and lastly we have the manifest and so this is a JSON representation of your app object you can use this to modify properties that we don't have UI for or if you find this method easier you can just go ahead and modify the JSON directly and that works as well okay awesome so I do have a question about the API permissions when we picked like we were scrolling down that big giant list that we had that we would pick permissions what if some developer is new to the platform and they want to know more about the permissions where do they go and find about what permissions they need and how they access it yeah so for permissions we have some links to documentation for the specific API s and so if we look at the Microsoft graph API we have a link to documentation here so if we just go ahead and click this link it'll take us to a permissions reference okay awesome and this lists all the permissions here okay awesome that's great thank you so much for showing us lecture I did not know app creation was so simple and I can't wait to try it out myself and thank you everyone for joining us and I hope you guys enjoy the app creation experience as much as I did

Original Description

Learn how you get started using Microsoft Graph to register your app with the Azure AD v2.0 endpoint. To learn more about the Microsoft Graph and Application Registration, visit https://docs.microsoft.com/en-us/graph/auth-overview For additional Microsoft Graph tools and resources, visit https://graph.microsoft.com
Watch on YouTube ↗ (saves to browser)
Sign in to unlock AI tutor explanation · ⚡30

Playlist

Uploads from Microsoft 365 Developer · Microsoft 365 Developer · 14 of 60

1 Adaptive Cards community call-February 2019
Adaptive Cards community call-February 2019
Microsoft 365 Developer
2 PowerApps community call-February 2019
PowerApps community call-February 2019
Microsoft 365 Developer
3 Microsoft Graph community call-March 2019
Microsoft Graph community call-March 2019
Microsoft 365 Developer
4 Office Add ins community call-March 2019
Office Add ins community call-March 2019
Microsoft 365 Developer
5 PowerApps community call-March 2019
PowerApps community call-March 2019
Microsoft 365 Developer
6 Microsoft Teams community call-March 2019
Microsoft Teams community call-March 2019
Microsoft 365 Developer
7 Using React and Office UI Fabric React Components
Using React and Office UI Fabric React Components
Microsoft 365 Developer
8 Build Microsoft Teams customization using SharePoint Framework
Build Microsoft Teams customization using SharePoint Framework
Microsoft 365 Developer
9 Microsoft Graph community call-April 2019
Microsoft Graph community call-April 2019
Microsoft 365 Developer
10 Using Change Notifications and Track Changes with Microsoft Graph
Using Change Notifications and Track Changes with Microsoft Graph
Microsoft 365 Developer
11 Office Add Ins community call-April 2019
Office Add Ins community call-April 2019
Microsoft 365 Developer
12 Adaptive Cards community call-April 2019
Adaptive Cards community call-April 2019
Microsoft 365 Developer
13 Microsoft Teams community call-April 2019
Microsoft Teams community call-April 2019
Microsoft 365 Developer
Getting Started with Microsoft Graph and Application Registration
Getting Started with Microsoft Graph and Application Registration
Microsoft 365 Developer
15 Getting Started with Microsoft Graph and the Directory API
Getting Started with Microsoft Graph and the Directory API
Microsoft 365 Developer
16 Getting Started with Microsoft Graph and Microsoft Teams
Getting Started with Microsoft Graph and Microsoft Teams
Microsoft 365 Developer
17 Getting Started with Microsoft Graph Explorer
Getting Started with Microsoft Graph Explorer
Microsoft 365 Developer
18 Getting Started with Microsoft Graph
Getting Started with Microsoft Graph
Microsoft 365 Developer
19 Getting Started with Microsoft Graph and Mail API
Getting Started with Microsoft Graph and Mail API
Microsoft 365 Developer
20 Getting Started with Microsoft Graph and Office 365 Groups
Getting Started with Microsoft Graph and Office 365 Groups
Microsoft 365 Developer
21 Getting Started with Microsoft Graph and the Calendar API
Getting Started with Microsoft Graph and the Calendar API
Microsoft 365 Developer
22 Getting Started with the Microsoft Graph Toolkit
Getting Started with the Microsoft Graph Toolkit
Microsoft 365 Developer
23 Getting Started with Microsoft Graph and JavaScript SDKs
Getting Started with Microsoft Graph and JavaScript SDKs
Microsoft 365 Developer
24 Getting Started with Microsoft Graph and .NET SDKs
Getting Started with Microsoft Graph and .NET SDKs
Microsoft 365 Developer
25 Discover how businesses can be more productive with Microsoft 365 integrations
Discover how businesses can be more productive with Microsoft 365 integrations
Microsoft 365 Developer
26 Adaptive Cards community call-May 2019
Adaptive Cards community call-May 2019
Microsoft 365 Developer
27 Office Add-ins community call-May 2019
Office Add-ins community call-May 2019
Microsoft 365 Developer
28 Why We Built on Microsoft Teams
Why We Built on Microsoft Teams
Microsoft 365 Developer
29 Microsoft Teams community call-May 2019
Microsoft Teams community call-May 2019
Microsoft 365 Developer
30 Microsoft Graph community call-June 2019
Microsoft Graph community call-June 2019
Microsoft 365 Developer
31 Build Angular SPA's with Microsoft Graph - June 2019
Build Angular SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
32 Office Add -ins community call-June 2019
Office Add -ins community call-June 2019
Microsoft 365 Developer
33 Build Android native apps with the Microsoft Graph Android SDK - June 2019
Build Android native apps with the Microsoft Graph Android SDK - June 2019
Microsoft 365 Developer
34 Build MVC apps with Microsoft Graph - June 2019
Build MVC apps with Microsoft Graph - June 2019
Microsoft 365 Developer
35 Authenticate and connect with Microsoft Graph - June 2019
Authenticate and connect with Microsoft Graph - June 2019
Microsoft 365 Developer
36 Microsoft Graph data connect - June 2019
Microsoft Graph data connect - June 2019
Microsoft 365 Developer
37 Change notifications with Microsoft Graph - June 2019
Change notifications with Microsoft Graph - June 2019
Microsoft 365 Developer
38 Build iOS native apps with the Microsoft Graph REST API - June 2019
Build iOS native apps with the Microsoft Graph REST API - June 2019
Microsoft 365 Developer
39 Build Node.js Express apps with Microsoft Graph - June 2019
Build Node.js Express apps with Microsoft Graph - June 2019
Microsoft 365 Developer
40 Smart UI with Microsoft Graph - June 2019
Smart UI with Microsoft Graph - June 2019
Microsoft 365 Developer
41 Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Leveraging the Microsoft Graph API from the SharePoint Framework - June 2019
Microsoft 365 Developer
42 Build UWP apps with Microsoft Graph - June 2019
Build UWP apps with Microsoft Graph - June 2019
Microsoft 365 Developer
43 Build React SPA's with Microsoft Graph - June 2019
Build React SPA's with Microsoft Graph - June 2019
Microsoft 365 Developer
44 Getting Started with Microsoft Graph and Batching
Getting Started with Microsoft Graph and Batching
Microsoft 365 Developer
45 Getting Started with Microsoft Graph and Change Notifications
Getting Started with Microsoft Graph and Change Notifications
Microsoft 365 Developer
46 Getting Started with Microsoft Graph and Consent Permissions
Getting Started with Microsoft Graph and Consent Permissions
Microsoft 365 Developer
47 Getting Started with Microsoft Graph and Education
Getting Started with Microsoft Graph and Education
Microsoft 365 Developer
48 Getting Started with Microsoft Graph and Financials
Getting Started with Microsoft Graph and Financials
Microsoft 365 Developer
49 Getting Started with Microsoft Graph and Excel
Getting Started with Microsoft Graph and Excel
Microsoft 365 Developer
50 Getting Started with Microsoft Graph and Data Connect
Getting Started with Microsoft Graph and Data Connect
Microsoft 365 Developer
51 Getting Started with Microsoft Graph and Intune
Getting Started with Microsoft Graph and Intune
Microsoft 365 Developer
52 Getting Started with Microsoft Graph and Notifications
Getting Started with Microsoft Graph and Notifications
Microsoft 365 Developer
53 Getting Started with Microsoft Graph and OneNote
Getting Started with Microsoft Graph and OneNote
Microsoft 365 Developer
54 Getting Started with Microsoft Graph and OneDrive
Getting Started with Microsoft Graph and OneDrive
Microsoft 365 Developer
55 Getting Started with Microsoft Graph and Open Extensions
Getting Started with Microsoft Graph and Open Extensions
Microsoft 365 Developer
56 Getting Started with Microsoft Graph and Paging
Getting Started with Microsoft Graph and Paging
Microsoft 365 Developer
57 Getting Started with Microsoft Graph and Schema Extensions
Getting Started with Microsoft Graph and Schema Extensions
Microsoft 365 Developer
58 Getting Started with Microsoft Graph and Security API
Getting Started with Microsoft Graph and Security API
Microsoft 365 Developer
59 Getting Started with Microsoft Graph and Query Parameters
Getting Started with Microsoft Graph and Query Parameters
Microsoft 365 Developer
60 Getting Started with Microsoft Graph and Reporting API
Getting Started with Microsoft Graph and Reporting API
Microsoft 365 Developer

Related Reads

📰
Reflection inks $1B compute deal with Nebius
Learn about Reflection's $1B compute deal with Nebius and its implications for AI and cloud computing
TechCrunch AI
📰
You’ve Been Working for Google for Years — And You Never Got Paid
Discover how your daily interactions with Google have been training their AI without your knowledge or compensation
Medium · AI
📰
You’ve Been Working for Google for Years — And You Never Got Paid
Discover how your everyday interactions with Google may be training their AI without your knowledge or compensation
Medium · Machine Learning
📰
From Career Confusion to Career Clarity: Building Supernova AI with Google Gemini
Learn how to build a career path using AI tools like Google Gemini and Supernova AI to gain clarity on skills and certifications
Dev.to · Suchitra Satapathy
Up next
The average CMO spends $15M per year on AI tools 💰
Uncensored CMO
Watch →