rmuser command implementation in api