Office 365 for IT Pros

Office 365 for IT Pros

https://office365itpros.com

Office 365 for IT Pros is the world's best book about Office 365 architecture, management, and deployment. Written by a team of highly experienced Microsoft MVPs, Office 365 for IT Pros is refreshed monthly.

The Right Way for Scripts to Request Permissions with the Microsoft Graph PowerShell SDK

Published

The Right Way for Scripts to Request Permissions with the Microsoft Graph PowerShell SDK

Using Connect-MgGraph scopes to request a precise set of permissions at the start of a PowerShell script is the right way to make sure that the script can run and access the data it needs to process. Two schools of thought exist. Is it best to use the Scopes parameter to define the set of permissions when connecting with Connect-MgGraph, or should you go ahead and connect and check afterward? I favor the first approach, but either way works.

Continue to website...

More from Office 365 for IT Pros