# Custom user metadata when profile is sourced from external IDP

**URL:** <https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690>\
**Category:** Questions\
**Created:** [December 5, 2022, 6:14pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690 "2022-12-05T18:14:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![esitzes](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@esitzes](https://devforum.okta.com/u/esitzes)\
**Post date:** [December 5, 2022, 6:14pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690/1 "2022-12-05T18:14:29Z")

</div>

I want to define custom metadata fields for my users in Okta. I created `custom attributes` in Okta profiles and confirmed I can update them, however since many of my users are federated from an external IDP and we are sourcing their profile from the external IDP, it will not let me write to the custom attributes I created for these users. I know I could disable the sourcing of the profile from the external IDP, but then I risk my profile information for these users going out of date.

Is there a way for me to define and add data to custom metadata fields for Okta users that were JIT created and have their profile sourced from some external source?

---

<div class="post-metadata">

**Author:** ![esitzes](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@esitzes](https://devforum.okta.com/u/esitzes)\
**Post date:** [December 5, 2022, 6:16pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690/2 "2022-12-05T18:16:55Z")

</div>

To clarify, when I try to modify one of these custom attributes for a user that was externally sourced, I get a `Okta 403 (Operation failed because user profile is mastered under another system)` error.

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [December 5, 2022, 7:26pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690/3 "2022-12-05T19:26:57Z")

</div>

Hello,

In the profile editor (Directory \> Profile Editor) you can provide some type of default mapping from the external IdP profile to the Okta user profile for this custom attribute.

- If hard coded this value will be used for all users of this IdP.
- You can also create an expression that pulls it from an attribute passed by the external IdP.

If the above does not give enough control I would suggest to open a case with the Okta support team try the [forum here](https://support.okta.com/help/s/questions?language=en_US) that supports more of the profile management type of issues.

---

<div class="post-metadata">

**Author:** ![esitzes](https://avatars.discourse-cdn.com/v4/letter/e/c89c15/32.png) [@esitzes](https://devforum.okta.com/u/esitzes)\
**Post date:** [December 5, 2022, 7:33pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690/4 "2022-12-05T19:33:43Z")

</div>

Erik,

Thanks for responding, but that solution doesnt solve my issue. I need a field that is not hardcoded and that only my internal services can edit, not my external customers. I will ask this question in the forum you suggested

---

<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, 10:29pm UTC](https://devforum.okta.com/t/custom-user-metadata-when-profile-is-sourced-from-external-idp/22690/5 "2024-02-12T22:29:41Z")

</div>

Closed on February 12, 2024, 10:29pm UTC


