MSGraphStuff

1.1.0

Microsoft Graph API related functions. Some of them are explained at https://doitpshway.com/.

Some of the functions:
- Expand-MgAdditionalProperties - Function for expanding "AdditionalProperties" hash property to the main object aka flattens the returned object
- Get-CodeGraphModuleDependency - Function for getting Graph SDK modules required to run given code
-
Microsoft Graph API related functions. Some of them are explained at https://doitpshway.com/.

Some of the functions:
- Expand-MgAdditionalProperties - Function for expanding "AdditionalProperties" hash property to the main object aka flattens the returned object
- Get-CodeGraphModuleDependency - Function for getting Graph SDK modules required to run given code
- Get-CodeGraphPermissionRequirement - Function for getting Graph API permissions (scopes) that are needed tu run selected code
- Invoke-GraphAPIRequest - Function for creating request against Microsoft Graph API. Unlike official one supports paging and throttling
- New-GraphAPIAuthHeader - Function for generating header that can be used for authentication of Graph API requests
- ...
Show more

Minimum PowerShell version

5.1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name MSGraphStuff

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name MSGraphStuff

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Owners

Copyright

(c) 2022 @AndrewZtrhgf. All rights reserved.

Package Details

Author(s)

  • @AndrewZtrhgf

Tags

PowerShell Graph Microsoft API MSGraph MSGraphStuff

Functions

Expand-MgAdditionalProperties Get-CodeGraphModuleDependency Get-CodeGraphPermissionRequirement Get-MgGraphAllPages Invoke-GraphAPIRequest New-GraphAPIAuthHeader

PSEditions

Core Desktop

Dependencies

Release Notes


           1.0.5
               EDIT
                   Get-CodeGraphPermissionRequirement - new aliases, support for both permType, added method, apiVersion to the output, added searching for graph api calls using Invoke-MsGraphRequest, Invoke-RestMethod, Invoke-WebRequest and their aliases
               BUGFIX
                   Get-CodeDependency - fixed skipping of modules when processJustMSGraphSDK switch is used
           1.0.6
               EDIT
                   Get-CodeGraphPermissionRequirement - new examples and checks
               ADDED
                   Get-CodeGraphModuleDependency
           1.0.7
               EDIT
                   Get-CodeGraphPermissionRequirement - permissions output optimized by default, to change that use dontFilterPermissions
           1.0.8
               BUGFIX
                   Get-CodeGraphModuleDependency - ignore Import-Module results, fixed DependencyPath extraction
               EDIT
                   Get-CodeGraphPermissionRequirement - added switch allOccurrences, removed unknownDependencyAsObject parameter when searching for dependencies, because there is no real reason to return such results
           1.0.8
               EDIT
                   Get-CodeGraphModuleDependency - omit type property as it is useless
           1.0.9
               ADDED
                   Get-MgGraphAllPages
               EDIT
                   Get-CodeGraphPermissionRequirement - added Get-MgContext as command that doesnt require any privileges
                   Invoke-GraphAPIRequest - better detection of value property
           1.0.11
               BUGFIX
                   Get-CodeGraphPermissionRequirement - ignore #requires module statements
           1.1.0
               EDIT
                   Get-CodeGraphPermissionRequirement - requires module Microsoft.Graph.Authentication (at least version 2.18.0) where output of the Find-MgGraphCommand command used for getting the permissions was significantly changed
                                                      - change in permission filtering logic, change in the returned output (error messages), ...
               

FileList

Version History

Version Downloads Last updated
1.1.0 (current version) 26,771 9/16/2024
1.0.11 16,084 6/10/2024
1.0.10 2,683 5/19/2024
1.0.9 8,292 3/11/2024
1.0.8 16 3/11/2024
1.0.7 1,560 2/29/2024
1.0.6 551 2/26/2024
1.0.5 53 2/25/2024
1.0.4 113 2/24/2024
1.0.3 14 2/24/2024
1.0.2 125 2/23/2024
1.0.1 12,482 7/11/2023
1.0.0 69 4/7/2023
Show more