How can we show\hide EDIT by user group?

Below is the link to the document in which how to hide the edit button is explained in detail. Enable/disable edit button