# How to change AuthenticationProviderType of an existing User in Okta?

**URL:** <https://devforum.okta.com/t/how-to-change-authenticationprovidertype-of-an-existing-user-in-okta/20042>\
**Category:** Questions\
**Created:** [March 31, 2022, 1:47pm UTC](https://devforum.okta.com/t/how-to-change-authenticationprovidertype-of-an-existing-user-in-okta/20042 "2022-03-31T13:47:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![MaorEitan](https://avatars.discourse-cdn.com/v4/letter/m/dec6dc/32.png) [@MaorEitan](https://devforum.okta.com/u/MaorEitan)\
**Post date:** [March 31, 2022, 1:47pm UTC](https://devforum.okta.com/t/how-to-change-authenticationprovidertype-of-an-existing-user-in-okta/20042/1 "2022-03-31T13:47:13Z")

</div>

I have an Okta User and I want to update its provider from `AuthenticationProviderType.FEDERATION` to `AuthenticationProviderType.OKTA` .

I used to build the User using UserBuilder as follows:

```auto
UserBuilder userBuilder = createUser(tenantId, firstName, entityId, ssoEnabled, getLogin(tenantId, email), email, null, TYPE_USER);
userBuilder.setProvider(client.instantiate(AuthenticationProvider.class)
                                      .setName(AuthenticationProviderType.FEDERATION.name())
                                      .setType(AuthenticationProviderType.FEDERATION));
User user = userBuilder.buildAndCreate(client);

```

Is there any way to update the provider type in the existing user?

---

<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 12, 2024, 6:22pm UTC](https://devforum.okta.com/t/how-to-change-authenticationprovidertype-of-an-existing-user-in-okta/20042/2 "2024-02-12T18:22:20Z")

</div>

Closed on February 12, 2024, 6:22pm UTC


