microsoft / Partner-Center-PowerShell

PowerShell module for managing Partner Center resources.
https://docs.microsoft.com/powershell/partnercenter/
MIT License
130 stars 59 forks source link

Powershell accessContainerId different from HTTP API GET #427

Open JoELunaB opened 2 months ago

JoELunaB commented 2 months ago

Feature Request

I'm working on an audit report to get all the GDAP groups added to each tenant in my company, I was able to get this with 2 API calls, but it will only give me data for 1 per run, I went ahead and tried this through Powershell, took me a while but I was able to download the Graph SDK and Graph.Identity.Partner modules, I was able to use Connect-MgGraph with security Scopes (approved them via a popup),

Powershell does provide the same number of accessContainerId's but with different GUIDs vs getting them from HTTP GET API call, the API call do match the Entra Security Groups ID's but the Powershell Id's are different,

API CALL: https://graph.microsoft.com/v1.0/tenantRelationships/delegatedAdminRelationships/9ee93227-079b-41ea-89bf-8e1a4927e4db-f1f27eba-6bbb-4953-a138-5aefc73c992d/accessAssignments?$select=accessContainer

API CALL

Powershell call: PowershellCall

What are these ID's Powershell is giving me?