<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
0D54z00009RMqSLCA1Okta Identity EngineWorkflowsAnswered2025-09-14T09:00:22.000Z2023-07-10T14:09:44.000Z2023-07-17T16:44:48.000Z

jeqpb (jeqpb) asked a question.

Is there a way to merge the two objects without Okta considering the "profile" key as a duplicate, and therefore deleting it?

Hi all!

 

I'm trying to merge two objects. They are as below:

 

  • 1st object

{"profile":{"employeeStatus":"Cadre-Regular"}}

 

  • 2nd object

{"profile":{"login":"john.doe@g-ushin.com","email":"john.doe@g-ushin.com"}}

 

 

 

When I'm using the "Merge" function, the result is:

{"profile":{"employeeStatus":"Cadre-Regular"}}

 

I believe that this is because "profile" is in both object.

Is there a way to merge the two objects without Okta considering the "profile" key as a duplicate, and therefore deleting it?

 

Thanks,


jeqpb likes this.
  • Hello @jeqpb (jeqpb)​ Thank you for reacting out to our Community!

     

    Only way I can see is using 2 separate get objects at the path profile. This gives two separate objects. Then use merge on the two new objects and an object construct with the key profile.

    Please see screenshot attached:

    Screenshot 2023-07-12 at 01.31.19 

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
    Selected as Best
  • Hello @jeqpb (jeqpb)​ Thank you for reacting out to our Community!

     

    Only way I can see is using 2 separate get objects at the path profile. This gives two separate objects. Then use merge on the two new objects and an object construct with the key profile.

    Please see screenshot attached:

    Screenshot 2023-07-12 at 01.31.19 

    Community members help others by clicking Like or Select as Best on responses. Try it today.

    Expand Post
    Selected as Best
  • jeqpb (jeqpb)

    Hi Paul,

     

    That's perfect, thanks a lot!!

This question is closed.
Loading
Is there a way to merge the two objects without Okta considering the "profile" key as a duplicate, and therefore deleting it?