(1) to grind sesame seeds (for cooking). (2) idiomatically, to flatter or ingratiate oneself with someone; to butter up
すり鉢で胡麻をごまをしてドレッシングを作った。
I ground sesame seed in a mortar to make the dressing.
彼は課長にごまをしてばかりいるから、みんなから嫌われている。
He is always flattering the manager, so everyone dislikes him.
上司にごまをするような言い方はやめたほうがいい。
You should stop talking in a way that flatters the boss.