It seems that commands for managing administrative units will need to retrieve a specific administrative unit by its name.
The method getAdministrativeUnitIdByDisplayName already exists in AadAdministrativeUnitRemoveCommand. Move the method getAdministrativeUnitIdByDisplayName to an util aadAdministrativeUnit to be reusable from other commands.
There are similar utils aadGroup and aadUser.
It seems that commands for managing administrative units will need to retrieve a specific administrative unit by its name.
The method
getAdministrativeUnitIdByDisplayNamealready exists inAadAdministrativeUnitRemoveCommand. Move the methodgetAdministrativeUnitIdByDisplayNameto an utilaadAdministrativeUnitto be reusable from other commands.There are similar utils
aadGroupandaadUser.