> ## Documentation Index
> Fetch the complete documentation index at: https://ayakaleaf-pro.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Massenübertragung der Projekteigentümerschaft

```bash wrap theme={null}
# email based
toolkit$ bin/run-script modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=alice@example.com --to-user=bob@example.com

# user-id based
tookit$ bin/run-script modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=68880f000000000000000000 --to-user=68880f000000000000000001

# Legacy docker-compose.yml setup:
$ docker exec sharelatex /bin/bash -c "source /etc/overleaf/env.sh && source /etc/container_environment.sh && cd /overleaf/services/web && node ./modules/server-ce-scripts/scripts/transfer-all-projects-to-user.mjs --from-user=alice@example.com --to-user=bob@example.com"
```

## Flags

| Name | Beschreibung |
| - | - |
| `--from-user` | E-Mail-Adresse oder Benutzer-ID des aktuellen Projekteigentümers |
| `--to-user` | E-Mail-Adresse oder Benutzer-ID des neuen Projekteigentümers |

## Abschluss

Bricht das Skript aufgrund eines Fehlers vorzeitig ab, gibt es den Fehler aus und beendet sich mit dem Code 1, um anzuzeigen, dass es nicht erfolgreich war.

Wird die Migration erfolgreich abgeschlossen, gibt es "Done" aus und beendet sich mit dem Code 0.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.