There is a text field Editor__c in Account object and lookup field User__c in Contact object. As soon as I select a value from User__c lookup field and save it the same value should be automatically updated in the Editor__c field if the profile is of Editor
I tried with flows and trigger but couldn’t find any solution
Collect the ids in 1 loop. Check if they're right profile. Loop again and update accounts. You'll have to think what should happen if somebody updates 2 contacts at same time, which value should win.