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!