def departments(self) -> DepartmentsRequestBuilder:
        """
        Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity.
        """
        from .departments.departments_request_builder import DepartmentsRequestBuilder

        return DepartmentsRequestBuilder(self.request_adapter, self.path_parameters)

        Provides operations to manage the departments property of the microsoft.graph.security.labelsRoot entity.
        
msgraph/generated/security/labels/labels_request_builder.py