Skip to content

Add --use-user-id flag to occ files:transfer-ownership command #54790

@devi69

Description

@devi69

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending check for reproducibility or if it fits our roadmapenhancementgood first issueSmall tasks with clear documentation about how and in which place you need to fix things in.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions