microsoftgraph / msgraph-sdk-powershell

Powershell SDK for Microsoft Graph
https://www.powershellgallery.com/packages/Microsoft.Graph
Other
712 stars 172 forks source link

Access Package Assignment Failing - "Connected Organization Not Found" #2958

Closed AKMWali closed 1 month ago

AKMWali commented 2 months ago

Describe the bug

We successfully connected to the organization to retrieve users and assign the associated access package. However, we're still encountering an error stating that no connected organization was found.

2 1

Expected behavior

It should successfully add the user as an external user from the connected organization and assign them to the associated access package.

How to reproduce

New-MgBetaEntitlementManagementAccessPackageAssignmentRequest -AccessPackageId $engineerAccessPackage.Id -AssignmentPolicyId $engineerPolicy.Id -TargetEmail $email

SDK Version

2.23.0

Latest version known to work for scenario above?

2.23.0

Known Workarounds

No response

Debug output

Click to expand log ``` ```
2 1

Configuration

No response

Other information

No response

timayabi2020 commented 1 month ago

Hi @AKMWali please add a -Debug parameter and share the results.

AKMWali commented 1 month ago

The issue has been resolved. The failure was due to a duplicate entity. Thank you!