---
title: "Discussion on \"How to get all Graph API permissions required to run selected code using PowerShell\" | Hashnode"
description: "Discussion on \"How to get all Graph API permissions required to run selected code using PowerShell\". Now that Microsoft Graph API is the main management tool for most of the Microsoft Cloud services, more and more admins will need to be able to work effectively with it.\nGraph API can be quite hard to understand, mainly the scope/permission part of i..."
url: "https://hashnode.com/posts/how-to-get-all-graph-api-permissions-required-to-run-selected-code-using-powershell/65ef382fe6a6d9e0ec9067c9"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to get all Graph API permissions required to run selected code using PowerShell](https://doitpshway.com/how-to-get-all-graph-api-permissions-required-to-run-selected-code-using-powershell?utm_source=hashnode&utm_medium=feed)

Now that Microsoft Graph API is the main management tool for most of the Microsoft Cloud services, more and more admins will need to be able to work effectively with it. Graph API can be quite hard to understand, mainly the scope/permission part of i...

Mar 11, 2024 · 5 min read · doitpshway.com  
Updated Mar 22, 2024  
Read the article

-   [#powershell](https://hashnode.com/tag/powershell)
-   [#dependencies](https://hashnode.com/tag/dependencies)
-   [#graph](https://hashnode.com/tag/graph)
-   [#msgraph](https://hashnode.com/tag/msgraph)

## Written by

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

@AndrewZtrhgf · Czech Republic

  
[View profile](https://hashnode.com/@AndrewZtrhgf)

System Administrator that loves PowerShell

I work as System Administrator for more than 15 years now and I love to make my life easier by automating work &amp; personal stuff via PowerShell (even silly things like food recipes list generation).

## Responses

Markdown supported · ⌘↵ to post

[Abdullah Ollivierre](https://hashnode.com/@aollivierre)

[May 29, 2024](https://hashnode.com/posts/how-to-get-all-graph-api-permissions-required-to-run-selected-code-using-powershell/65ef382fe6a6d9e0ec9067c9/comment/6657ac4437de210b0e5a5a06)

Keep getting WARNING: Command's Invoke-MgGraphRequest definition is missing. Skip getting its dependencies please see [github.com/ztrhgf/useful\_powershell\_modules/issue…](https://github.com/ztrhgf/useful_powershell_modules/issues/6)

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

[May 30, 2024](https://hashnode.com/posts/how-to-get-all-graph-api-permissions-required-to-run-selected-code-using-powershell/65ef382fe6a6d9e0ec9067c9/comment/6657ac4437de210b0e5a5a06#reply-66583ba5bda1021db9671ad0)

Hi, it is unreadable, so instead please create GitHub issue at [github.com/ztrhgf/useful\_powershell\_modules/issues](https://github.com/ztrhgf/useful_powershell_modules/issues) with information like the code you are trying to analyze, a screenshot of the error message, etc. Thanks!

[Abdullah Ollivierre](https://hashnode.com/@aollivierre)

[May 30, 2024](https://hashnode.com/posts/how-to-get-all-graph-api-permissions-required-to-run-selected-code-using-powershell/65ef382fe6a6d9e0ec9067c9/comment/6657ac4437de210b0e5a5a06#reply-66588cdc92d30ec0917b1ae3)

[Ondrej Sebela](https://hashnode.com/@AndrewZtrhgf)

Sorry about that. Great suggestion! Here you go [github.com/ztrhgf/useful\_powershell\_modules/issue…](https://github.com/ztrhgf/useful_powershell_modules/issues/6)

Please let me know if you need any thing else.
