Added change user privilege functionality