.. _user-dept:

User Department Management
============================

You can manage departments by adding or deleting department information that is available for your account

Adding departments
-------------------

#. Go to **Management > User** in the top panel
#. Go to Departments in the left panel
#. Click ``Tasks`` **> Create**
#. Enter the following:

    - Department Code,This is the code for the department
    - Department,The name of the department
    - Parent Department,Select a higher department.(You must select this item to display it as a tree structure.)
    - Node Group(option),Select whether to include as a node group condition

#. Click the ``Save`` botton

Import Department CSV File
--------------------------

Create departments based on predefined files in the form of external CSV files

#. Go to **Management > User** in the top panel
#. Go to **Departments** in the left panel
#. Click ``Tasks`` **> Import**
#. Click ``Select File`` to select the CSV file to import
#. Click ``Run``

.. note::  The CSV file is download through the download icon on the left side of the TASK button, and is used by following the form.

Deleting Departments
--------------------

#. Go to **Management > User** in the top panel
#. Go to **Departments** in the left panel
#. Check the check box on the left side of the department you want to delete.
#. Click ``Tasks`` **> Delete**

.. note:: To delete a department, you must either release the department from the account assigned to it or there must be no sub-department entries associated with it

To specify a department node group
------------------------------------

To use an IP request system on a department-based basis, you must specify a node group containing departmental assignable IP bands

#. Go to **Management > User** in the top panel
#. Go to **Departments** in the left panel
#. Select the check box for the department you want to assign a node group to
#. Click ``Tasks`` **> Add to Node Group**
#. Click ``Save``

Undepartmentalize node groups
-------------------------------

#. Go to **Management > User** in the top panel
#. Go to **Departments** in the left panel
#. Select the check box for the department you want to assign a node group to
#. Click ``Tasks`` **> Remove from Node Group**
#. Click ``Save``