List users to find the user ID of the logged-in user.In this example, we'll use the following APIs. The user logging in must consent to one of the required scopes for the APIs you plan to use. Determine required permission scopesĮach API in the Microsoft Graph is protected by one or more permission scopes. In this guide, you will use delegated access to login as a user, grant consent to the SDK to act on your behalf, and call the Microsoft Graph.įor details on using app-only access for unattended scenarios, see Use app-only authentication with the Microsoft Graph PowerShell SDK. The PowerShell SDK supports two types of authentication: delegated access, and app-only access. You can change this by using the Select-MgProfile command. API versionīy default, the SDK uses the Microsoft Graph REST API v1.0. If you haven't already installed the SDK, please do so before following this guide. In this guide you'll use the Microsoft Graph PowerShell SDK to perform some basic tasks.
0 Comments
Leave a Reply. |