How to update custom paragaph which is added to User Profile? I have a requirement to create/update a paragraph which is added as a custom field in USER profile. After surfing here, i got how to update a paragraph which is connected to node. But I am not able figure out for User profile. Any help will be appreciated. I used below code for saving the paragraph, but how it will linked to $user-&gt;save(); ?

$paragraph = Paragraph::create([
      'type' =&gt; 'mmodule_paragraph',
      'field_employee_id' =&gt; 'Field value',
      'field_location' =&gt; 'Field value',
      'field_name' =&gt; 'Field value',
      'field_segment' =&gt; 'Field value',
    ]);
    $paragraph-&gt;save();
Don't save the paragraph, add it to the user field and then save it together with the user:

$paragraph = Paragraph::create([
  'type' =&gt; 'mmodule_paragraph',
  'field_employee_id' =&gt; 'Field value',
  'field_location' =&gt; 'Field value',
  'field_name' =&gt; 'Field value',
  'field_segment' =&gt; 'Field value',
]);
$user-&gt;field_paragraph[] = $paragraph;
$user-&gt;save();


In case you want to replace the field content overwrite the entire field array:

$user-&gt;field_paragraph = [['entity' =&gt; $paragraph]];