getting scopes from accessEntity policy

Hi,

Following the solution proposed by @Dino here, I've tried getting the 'scopes' from an apiproduct. The configured API product is the only one linked to an app, and the apiproduct has one scope item defined.

However, when I use the AccessEntity policy, nothing is returned.

Also, when the endpoint https://api.enterprise.apigee.com/v1/organizations/<org>/developers/guy.hagemans@<yadiya>/apps/<appn...;

also no scopes are returned.

for debugging, I've added a Servicecallout policy that sends the output of the AccessEntity policy to a logging endpoint, but it always receives empty data.

please let me know what I can do to get the scopes from the app.

As input for the AccessEntity policy I'm using the following config:

<AccessEntity async="false" continueOnError="false" enabled="true" name="AccessEntityAE">
    <DisplayName>AccessEntityAE</DisplayName>
    <EntityType value="apiproduct"/>
    <EntityIdentifier type="consumerkey" ref="request.queryparam.apikey"/>
    <!-- result is stored in a variable:  AccessEntity.AE-Product --> 

</AccessEntity>

0 1 173
1 REPLY 1

Former Community Member
Not applicable

I suspect scopes only work with OAuth.