

Click the Add a permission button and then,.In the list of pages for the app, select API permissions (The box should contain the option urn:ietf:wg:oauth:2.0:oob). In the Suggested Redirect URIs for public clients(mobile,desktop), check the second box so that the app can work with the MSAL libs used in the application.Use urn:ietf:wg:oauth:2.0:oob in the Redirect URI text box and select the Type as Public Client (mobile and desktop).In the list of pages for the app, select Authentication

You'll need it to configure the Visual Studio configuration file for this project. On the app Overview page, find the Application (client) ID value and record it for later. Select Register to create the application.In the Supported account types section, select Accounts in any organizational directory and personal Microsoft accounts (e.g.In the Name section, enter a meaningful application name that will be displayed to users of the app, for example Console App for Microsoft Graph.When the Register an application page appears, enter your application's registration information: In App registrations (Preview) page, select Register an Application. In App registrations page, select Register an Application. In the left-hand navigation pane, select the Azure Active Directory service, and then select App registrations (Preview).If your account gives you access to more than one tenant, select your account in the top right corner, and set your portal session to the desired Azure AD tenant.Sign in to the Azure portal using either a work or school account or a personal Microsoft account.Step 1: Clone or download this repository For more information on how to get an Azure AD tenant, please see How to get an Azure AD tenant. An Azure Active Directory (Azure AD) tenant.Either a Microsoft or Office 365 for business account.Visual Studio with C# version 7 and above.The sample uses the Microsoft Authentication Library (MSAL) for authentication. The sample uses the Azure AD v2.0 endpoint, which enables users to sign in with either their personal or work or school Microsoft accounts. NET Client Library to work with data returned by Microsoft Graph. It uses the Microsoft Graph API to retrieve a user's profile picture, upload the picture to OneDrive, create a sharing link, and send an email that contains the photo as an attachment and the sharing link in its text. This sample shows how to connect a Windows console application to a Microsoft work or school (Azure Active Directory) or personal (Microsoft) account using the Microsoft Graph API. Configure the sample to use your Azure AD tenant.You can continue to use this sample "as-is", but it won't be maintained moving forward. As part of the archival process, we're closing all open issues and pull requests. NET Core apps with the Microsoft Graph SDK training. This project is being archived and replaced with the Build. Microsoft Graph C# Console Connect Sample IMPORTANT
