How Do I Access Active Directory Users/Groups In An Azure APIM Policy?
问题 I have added an Azure Active Directory Identity Provider to my APIM (from an AAD in a different tenant). I have used that to successful add an Azure Active Directory Group to my APIM. I now want to check if the user is part of that group. When I use APIM Users/Groups I can do that check with this policy, but when I use Active Directory this policy always fails with a 401. <policies> <inbound> <choose> <when condition="@(context.User.Groups.Select(g => g.Name).Contains("org1"))"> <set-backend