-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
New-MgEntitlementManagementAssignmentPolicy - Access Package Assignment Requestor On-Behalf-Of not working #2373
Comments
Could you please share:
|
This is how I construct the parameters for
If I then call: I get the following output:
So the command executes correctly and seems to set the onBehalfRequestors. But my question is why I cannot assign any users to the policy when logging in as the onBehalfRequestor after running this command? |
Thanks for providing the details. The debug log shows that the command sent the expected request and got the expected response from the service.
Please open a service question/ticket at https://developer.microsoft.com/graph/support as this is a service inquiry that can only be answered by the API/service experts. Remember to include the This repository is intended for issues related to the functionality of the SDK (bugs and feature requests). We may not be the best place to answer some queries that are tied to the functionality of the API. |
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment. |
Describe the bug
We are trying to administer entitlement management using the Graph cmdlets.
Specifically we want to allow some access packages to be assigned by requesting assignment on-behalf-of another user.
It does not seem that setting the onBehalfRequestors property when calling the New-MgEntitlementManagementAssignmentPolicy cmdlets is working.
When trying to create a new assignment for another user (logged in as the user specified in the onBehalfRequestors parameter):
We get a permission issue:
To Reproduce
Steps to reproduce the behavior:
As a catalog owner we are creating an access package policy for an existing access package with the New-MgEntitlementManagementAssignmentPolicy cmdlet.
Specifically we are setting the onBehalfRequestors to a specific user and setting enableOnBehalfRequestorsToAddAccess=true (according to details in https://learn.microsoft.com/en-us/graph/api/resources/accesspackageassignmentrequestorsettings?view=graph-rest-1.0 )
Expected behavior
Being able to assign other users to the access package/policy as the user defined in the onBehalfRequestors parameter.
Module Version
Microsoft.Graph version 2.6.1
Environment Data
Name Value
PSVersion 5.1.22621.2428
PSEdition Desktop
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 10.0.22621.2428
CLRVersion 4.0.30319.42000
WSManStackVersion 3.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
The text was updated successfully, but these errors were encountered: