how to retrieve "MembershipRule" for Azure access package policies using MS Graph API SDK Powershell

Satyam Valipe 0 Reputation points
2024-02-26T20:04:17.4333333+00:00

In our Azure environment, we've access packages being provisioned via auto-assignment policies. (Ex: Department="Sales") I was looking for a way to retrieve each access package auto-assignment policy criteria using Powershell MS Graph API SDK. From what I could tell so far, it seems like the info I am looking for is stored in "MembershipRule" attribute of the policy but couldn't find a correct API function that returns it.  I have tried the following API so far with no luck. Any input would be much appreciated! Get-MgEntitlementManagementAccessPackage -ExpandProperty "assignmentpolicies" Get-MgBetaEntitlementManagementAccessPackageAssignmentPolicy -AccessPackageAssignmentPolicyId $policy.Id

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,798 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.