<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-M74D8PB" height="0" width="0" style="display:none;visibility:hidden">
Loading
Skip to NavigationSkip to Main Content
0D54z0000A4p9lICQQOkta Classic EngineDirectoriesAnswered2024-05-13T17:46:25.000Z2024-05-10T22:33:56.000Z2024-05-13T17:46:24.000Z
Add proxyAddresses from Okta to AD without overwriting existing ones

Hi all,

 

Currently we manage proxyAddresses in AD directly, but I would like to add the option to add new proxyAddresses via Okta. I have added the field from AD and set up an Array field in Okta (mastered by Okta) and I can add new proxyAddresses no problem. However, if there are existing proxyAddresses in AD, these will be overwritten by Okta as soon as a new one is added in Okta. This is a problem as in theory, someone could still manually add a proxyAddress in AD if they wanted, but then the next time someone adds one via Okta it'd be erased without anyone noticing (until the user notices they've stopped receiving mail). Is it possible to have Okta add new proxyAddresses without overwriting existing ones? Thanks!


  • User16594883467582706479 (Customer Support Online Experience)

  • Hi Laura,

     

    The first link does not answer the question I have, which is specific to overwriting the proxyAddress field, not importing users from AD generally.

     

    The second link explains how to do it with PowerShell without overwriting existing proxyAddresses, which I am aware how to do, but does not explain how to do it with Okta, which is what I am asking.

     

    I did find a workaround, but it's cumbersome and I would be interested in a better option.

     

    • Imported the proxyAddress attribute to Okta from AD
    • Created two Okta User array attributes:
      • proxyAddresses (mastered by Okta)
        • Mapped this attribute to control the proxyAddress AD attribute
      • proxyAddressesFromAd (mastered by AD)
        • Mapped the AD proxyAddresses attribute to control this attribute
    • Created an Okta Workflow which actions whenever the Update User Profile For Okta event is triggered
      • Continues if the field changed is proxyAddressesFromAd
      • Sets the proxyAddresses field equal to the proxyAddressesFromAd field

     

    This allows adding a proxyAddress to either the proxyAddresses attribute in Okta, or directly to the proxyAddresses attribute in AD, and both a) having the data in Okta and b) not inadvertently overwriting the data in AD. If someone goes to add a proxyAddress via Okta, all the existing proxyAddresses are already filled out in the array, so they'd have to consciously delete one to remove it. And if they did, that change would be reflected in both Okta and AD as expected. It works, it's just a bit clunky due to having two proxyAddress-related fields in Okta, only one of which is writeable within Okta, and needing a Workflow to keep one of them up to date.

    Expand Post
This question is closed.
Loading
Add proxyAddresses from Okta to AD without overwriting existing ones