# Get user's department from Active Directory

Source: [https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/ad-activities/users-department-from-ad/](https://docs.virtosoftware.com/docs/virto-workflow-automation-web-part/virto-sharepoint-workflow-activities-kit-sharepoint-2010-workflow-platform/ad-activities/users-department-from-ad/)
Product: Virto Workflow Automation Web Part
Updated: 2026-08-12


This activity allows receiving user’s department from Active Directory and stores result in variable.

![Get user's department from Active Directory activity in the SharePoint Workflow Designer](https://img-docs.virtosoftware.com/wp-content/uploads/2024/10/get_users_department_from_active_directory_1.png)

If attribute does not exist, this method returns empty string.

## **SharePoint Workflow Designer Phrase**

Get this user department from this domain and store result in Variable: varaible.

## **Parameters**


| Parameter | Description |
|---|---|
| this user | User login name. Ex: “user@domain”, “domain\user” or “user” |
| this domain | **Optional**. Domain name. You should enter domain name if user name without a domain, otherwise it will be calculated from the user name. |


By default, activity uses the current user when authenticating. If you want to use custom

authentication, use “Set Active Directory authentication” activity before.
