> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cystack.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Department Management

> Guide to using the department management feature

<Card>
  **Use Cases**

  * **Department-based policy enforcement:** Assign employees to specific departments to facilitate the setup and application of granular security policies tailored to organizational units.
  * **Enforce the principle of least privilege:** Restrict permissions based on departmental roles to minimize the risk of sensitive data exposure and mitigate the impact of potential account compromises.
</Card>

## Create a Department

<Steps>
  <Step title={<>From the left sidebar menu, navigate to "Endpoint" {'\u2192'} "Directory" {'\u2192'} "Departments".</>} />

  <Step title={<>Hover over the workspace name and select the <code>{'\uFF0B'}</code> icon.</>} />

  <Step title="Hover over the newly created department and click on the department name to rename it." />

  <Step title="Enter the new name for the department and press Enter to save changes.">
    <img src="https://mintcdn.com/cystack/0-Nr0o5c9EozdKpV/images/endpoint/iam-department-edit-name.png?fit=max&auto=format&n=0-Nr0o5c9EozdKpV&q=85&s=35766baf9365757ab6386cd98a2ba156" alt="iam-department-edit-name" style={{display: 'block', margin: '0 auto'}} width="513" height="189" data-path="images/endpoint/iam-department-edit-name.png" />
  </Step>

  <Step title={<>To add a sub-department or create a new department under a specific branch, hover over the parent department and select the <code>{'\uFF0B'}</code> icon.</>}>
    <img src="https://mintcdn.com/cystack/0-Nr0o5c9EozdKpV/images/endpoint/iam-department-add.png?fit=max&auto=format&n=0-Nr0o5c9EozdKpV&q=85&s=55610c37e4e017a081ac22e1eb68eac6" alt="iam-department-add" style={{display: 'block', margin: '0 auto'}} width="519" height="559" data-path="images/endpoint/iam-department-add.png" />
  </Step>
</Steps>

***

## Rearrange Departments

To change the order or hierarchy of departments, click and hold the <code>{'\u2630'}</code> icon next to the specific department {'\u2192'} drag and drop it to the desired location.

<img src="https://mintcdn.com/cystack/0-Nr0o5c9EozdKpV/images/endpoint/iam-department-move.png?fit=max&auto=format&n=0-Nr0o5c9EozdKpV&q=85&s=7b8d8c42ebc07f34b04ee8ad119c4739" alt="iam-department-move" style={{display: 'block', margin: '0 auto'}} width="417" height="555" data-path="images/endpoint/iam-department-move.png" />
