Adding documentation for the detachRole method