
OrliS.35424 (Customer) asked a question.
Is it possible to create IDP discovery policy rule with the java okta sdk? I see that PolicyRule.TypeEnum class only contains the SIGN_ON and PASSWORD types. Can I get a code example of how to create it with the java sdk?

Hello @OrliS.35424 (Customer)
I hope you are having a great day
Thank you for posting, you can create a IDP discovery rule using the API's, to meet this goal you can check the following link:
https://developer.okta.com/docs/reference/api/policy/
If you need further assistance you can also feel free to post this question on our Okta Developer Forums: https://devforum.okta.com, this is a place for the Okta developer community to interact
Have a great day ahead
Henry E.
Okta Inc