Share via

Microsoft Graph PowerShell prevent exchange online and sharepoint online permissions

Skip Hofmann 341 Reputation points
2022-04-25T15:50:59.457+00:00

Hello

I want to start allowing Admins to use "Microsoft Graph PowerShell" however i have concerns when it comes to Exchange online and sharepoint online. How can i block or prevent admin's from using "Microsoft Graph PowerShell" to add permissions to Exchange and Sharepoint online ?

Exchange | Exchange Server | Development
Windows for business | Windows Server | User experience | PowerShell
Microsoft Security | Microsoft Graph

2 answers

Sort by: Most helpful
  1. Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
    2022-04-25T16:40:21.833+00:00

    Well, those are all delegated perms. so in that case, it would allow the user to access mailboxes they all ready have access to.
    You would generally use "Application" perms and then in that case, you can limit the mailbox access the app has using an access policy

    https://learn.microsoft.com/en-us/graph/auth-limit-mailbox-access

    Was this answer helpful?

    0 comments No comments

  2. Andy David - MVP 160.3K Reputation points MVP Volunteer Moderator
    2022-04-25T16:26:27.53+00:00

    Which admins are you referring to? What roles? If they are admins with those rights, you can't prevent that. Its no different than having that ability with Powershell or via the GUI.

    Was this answer helpful?


Your answer

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