Upgrade okta-sdk-java to 20.x.x

Hello,

I’m currently using okta-sdk-java 18.0.0. I’m trying to upgrade to the latest 20.x.x. I don’t see any migration instructions. But I’m find many methods are no longer available. For example, I need to create a user with “Staged” status, then activate it. Version 18 has UserApi.activateUser() method, but not in Version 20. I will list the methods below that I use them in version 18, but no longer in version 20 here. Please help me to understand what I need to change to. Thanks!

- UserApi.activateUser()
- UserApi.deactivateUser()
- UserApi.changePassword()
- UserApi.forgotPasswordSetNewPassword()
- UserApi.unlockUser()
- UserApi.revokeUserSessions()
- UserApi.listUserGroups()
- UserFactorApi.activateFactor() # The new return type does not contain all the attributes in the JSON response
1 Like

I’ll bubble this feedback up with the team to see if we can put comprehensive migration guide together. For now, we just have the changelog. It might be helpful if you open a GitHub issue with your use cases on the sdk itself, since SDK updates usually include bug fixes and security patches that deprecates flows.

Were you the one who raised the GitHub issue linked here? GitHub Issue #1594 post provides some solutions into the upgrade from version 18 to 19, and upgrading from 19 to 20 should be relatively straightforward.

Let me know if this helps