# Feature OP-13978 - Add, remove and rename folders in SharePoint/OneDrive

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-13978

## Planning

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Target versions | 13.3.0 |
| Sprint | 13.3.0 |
| Backlog bucket |  |
| Votes |  |
| List |  |
| Roadmap |  |
| Relevance |  |

## OPEN POINTS / FEEDBACK

_No work packages_

## Features and Chunks

| ID | Subject | Type | Status | Assignee | Target versions | Spent time |
| --- | --- | --- | --- | --- | --- | --- |
| OP-14049 | Add "automatically managed permissions" option when adding a storage to a project | Implementation | closed |  | 13.3.0 |  |
| OP-14061 | Implement a CreateFolderCommand for Sharepoint | Implementation | closed |  | 13.3.0 |  |
| OP-14062 | Implement a RenameFileCommand for Sharepoint | Implementation | closed |  | 13.3.0 |  |

## Bugs and other work packages

_No work packages_

## Technical Details

| Attribute | Value |
| --- | --- |
| Module |  |
| Feature Flag |  |
| Requires doc change | No |
| Enterprise plan |  |

## Details

| Attribute | Value |
| --- | --- |
| Pull preview |  |
| Mockups |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Accessibility | No |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable | Dominic Bräunlein |
| Product manager |  |
| Developers | OP Dev Titan Team |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Estimates and progress

| Attribute | Value |
| --- | --- |
| PD (min) |  |
| PD (max) |  |
| Work |  |
| Labor costs |  |

## Description

**As** an admin of a project with automatically managed folders   
**I want** a project folder to be automatically created in SharePoint/OneDrive when a storage is added to the project  
**so that** users can upload files into the designated project folder.

**Acceptance criteria**

  - When a SharePoint/OneDrive storage is added to a project in OpenProject, a corresponding **project folder is automatically created** if automatically managed folders was selected.
  - When a SharePoint/OneDrive **storage is removed** from a project in OpenProject, the corresponding **project folder is automatically deleted** in SharePoint/OneDrive.
  - When a **project** with one or more SharePoint/OneDrive storages is **deleted** in OpenProject, all corresponding **project folders are deleted** in SharePoint/OneDrive.
  - When a project is **archived**, the permissions on SharePoint/OneDrive are reset so that **only admins have access** to the project folder.
  - When a project is **renamed** in OpenProject, the corresponding **project folder is automatically renamed** in SharePoint/OneDrive.
  - The project folder in SharePoint/OneDrive should have the project id included e.g. "Demo Project (123)"

**Note to QA:** This WP does not include the setting of access permissions. Permissions are set with WP <mention class="mention" data-id="51711" data-type="work_package" data-text="##51711">##51711</mention>. As a consequence the folders created are only visible to admins in SharePoint/OneDrive and therefore only SharePoint/OneDrive admins can test this WP <mention class="mention" data-id="42086" data-type="user" data-text="@Wieland Lindenthal">@Wieland Lindenthal</mention>
