Microsoft365DSC icon indicating copy to clipboard operation
Microsoft365DSC copied to clipboard

MSFT_AccessPackageResourceRoleScope guid issues

Open tayhall opened this issue 6 months ago • 3 comments

Description of the issue

I'm on the latest version of DSC but having the same issue as detailed here:-

https://github.com/microsoft/Microsoft365DSC/issues/4032

Clearly something is not happy between the displaynames and GUID IDs.

I can export and view valid code, my compiled mof looks the same. How is the id created ?

AccessPackageResourceOriginId = 'group guid' AccessPackageResourceRoleDisplayName = 'member' ID = 'either exported GUID' or 'self generated'

Manually adding the resources works and the resources are in the catalog from the access package catalog code.

Ideally I would like to add a list of groups using the member and group GUID without the id guid_guid if that's possible.

I've tried seemingly every combination but just get the not valid guid error when applying.

Microsoft 365 DSC Version

V1.25.6.111.1

Which workloads are affected

Azure Active Directory (Entra ID)

The DSC configuration


Verbose logs showing the problem


Environment Information + PowerShell Version


tayhall avatar Jun 17 '25 16:06 tayhall

Can you please fix the link to the issue you're mentioning

n9294651 avatar Jun 17 '25 19:06 n9294651

Found the issue. You CANNOT use the name of the Catalog Displayname in CatalogID. It needs to be the GUID otherwise it will remove all the Resources in the access package. Even if you do not specify any Access Package resource Roles it still scrubs the resources. You do not need to specify the ID for the access package and you do not need to specify the ID (GUID_GUID) for the Resource Roles just member and the group GUID from my testing. You then get an access package with resources and code that works across tenants. (obviously with GUID changes for the Entitlement Catalog and Groups)

tayhall avatar Jun 18 '25 17:06 tayhall

https://github.com/microsoft/Microsoft365DSC/pull/6039

n9294651 avatar Jun 18 '25 22:06 n9294651

link to the issue not described

omwami999 avatar Jun 23 '25 05:06 omwami999