# Update user in okta java sdk

**URL:** <https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400>\
**Category:** API\
**Tags:** api, java\
**Created:** [February 21, 2023, 12:51am UTC](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400 "2023-02-21T00:51:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![venky7](https://avatars.discourse-cdn.com/v4/letter/v/9de053/32.png) [@venky7](https://devforum.okta.com/u/venky7)\
**Post date:** [February 21, 2023, 12:51am UTC](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400/1 "2023-02-21T00:51:16Z")

</div>

Hi,

I am using Java SDK to implement okta. I have already implemented create user profile api. Now this question is for updating user profile. When I tried to update any user information like user role, do we have any api available in okta to update the same. If this is not available please provide me the alternative approach.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 21, 2023, 9:38pm UTC](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400/2 "2023-02-21T21:38:15Z")

</div>

You should be able to use the [setProfile() method](https://developer.okta.com/okta-sdk-java/apidocs/org/openapitools/client/model/User.html#setProfile-org.openapitools.client.model.UserProfile-) to update the target user’s profile.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 13, 2024, 10:50pm UTC](https://devforum.okta.com/t/update-user-in-okta-java-sdk/23400/3 "2024-02-13T22:50:42Z")

</div>

Closed on February 13, 2024, 10:50pm UTC


