Get all routing rules for a given Policy ID - Okta SDK

Hello,

I’m trying to fetch all policy rules for a given policy ID using the Okta SDK Java docs.

When I use the endpoint https://${okta-domain}/api/v1/policies/${policyId}/rules through Postman, the API call returns a list with all of the rules, including details such as userIdentifier patterns(which is quite an important field for my case).

However, when I use the policyApi.listPolicyRules(“policyId”), the function returns a list of PolicyRule objects with empty pattern list for the userIdentifier.

Could there be something I’m missing or is there a bug in the SDK?

Thanks in advance!

This was misunderstanding on my side, sorry.
The property in question can be found in:

object.conditions.userIdentifier.patterns

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.