Is there a way to pass OrgName dynamically to AccessEntity Policy?

I have created multiple Orgs in my planet. I have created an API Proxy in an Org and used AccessEntity policy to access profile based on the consumer key from data store. As consumer key is unique across Orgs in a planet, can AccessEntity policy be able to extract the profiles irrespective of an Org the key is created? If not, how can I pass OrgName dynamically along with Consumer Key as an input to this Policy?

Thanks,

Feroz

0 3 244
3 REPLIES 3

Policies are not intended to be used across orgs and orgs give you separation of entities within Apigee.

Why are you trying to access entities from other orgs? This seems like it could be an anti-pattern

Hi Sir,

No, please find the below points.

a)The Developer needs to be in an organization. the proxy will also be in the same organization. (organization and developer are linked)

b)we can call using service-Callout policy.

Ex:To call proxy B belonging to organizations B from proxy A belonging to organization A and return value from organization B when calling Proxy A.

thanks,

Sandeep M.

No. Absolutely not.

You cannot have a policy that executes in one org and looks up data stored for another org.