Protect Microsoft 365 tenant for connections using PowerShell to Microsoft Graph

Sergio Londono 671 Reputation points
2024-08-28T01:29:21.36+00:00

Hello Team,

Microsoft Graph is the main application to reach resources in Microsoft365 tenant.

We need to be able to protect the connection from Powershell to Microsoft graph.

I setup a conditional access policy without success to specify the users who can connect from PowerShell to Microsoft graph, however, it is not working.

User's image

User's image

How can we protect the cloud app Microsoft Graph to block access to not authorized users?

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
12,265 questions
Microsoft Entra
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,092 questions
0 comments No comments
{count} votes

Accepted answer
  1. Vasil Michev 108K Reputation points MVP
    2024-08-29T18:10:03.06+00:00

    You can configure user restrictions directly on the service principal as detailed for example in this article: https://practical365.com/secure-internet-access-microsoft-graph-powershell-sdk/


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.