Add authority setting function.