Closed omarlucia closed 1 year ago
For someone struggling the same, i just resolved downgrading Microsoft.Graph version to 1.11.1.
I've tested from 1.16.0, 1.15.0, 1.14.0, 1.13.0, then just go to the most downloaded version 1.11.1 then works. not sure from what version this could be an issue.
Thanks for bringing this to our attention!
I've traced the issue to how New-MgEntitlementManagementAccessPackageAssignmentRequest
custom command is creating an instance of AccessPackageAssignment
. It is using the v1.0's AccessPackageAssignment
type when instantiating the object. AccessPackageAssignment
does not have a TargetId
property in v1.0 - https://learn.microsoft.com/en-us/graph/api/resources/accesspackageassignment?view=graph-rest-1.0#properties.
We will issue a bug fix for the issue in next week's release.
I'm trying to add assignments for an access package in Azure AD entitlement management. For that I'm following this docuemntation, assign-a-user-to-an-access-package-with-powershell
For that I'm using same snippet described just replacing it with my own values. (access package and user id)
Issue
When i run this i get the next error:
This error dont let me to add user to the access package.
As I see in documentation, 'TargetId" must be not empty with combination 'AccessPackageId' and 'AssignmentPolicyId' parameters.
versions
I currently download ps Microsoft.Graph 1.15.0 (also trying with 1.13.0 version)
Install-Module -Name Microsoft.Graph -Scope CurrentUser
PowerShell version
Can somebody help me in figureout why error
New-MgEntitlementManagementAccessPackageAssignmentRequest: The property 'TargetId' cannot be found on this object. Verify that the property exists and can be set.
is showing?