-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Description
Is your feature request related to a problem? Please describe.
Currently, the occ files:transfer-ownership command creates folders in the destination user's directory using the source user's display name in the format "Transferred from [displayname] on YYYY-mm-dd HH-MM-SS". This behavior is hardcoded and cannot be changed.
In environments with multiple users having the same display name, it becomes difficult to uniquely identify which user's files were transferred, creating confusion for administrators and users when managing transferred content.
Describe the solution you'd like
Add a --use-user-id flag to the occ files:transfer-ownership command that allows administrators to choose between using display names (current default behavior) or user IDs for the transferred folder naming convention.
When the flag is used, the folder name format would be:
"Transferred from [user-id] on YYYY-mm-dd HH-MM-SS"
This would ensure unique identification of transferred files while maintaining backward compatibility with the existing default behavior.
Tested on: Nextcloud 31.0.7 Enterprise