This article describes the file ownership in a team and chat on Microsoft Teams.
The ownership of files uploaded to Teams may vary depending on their location:
Note: We highly discourage customizing your Teams connected team/channel site (e.g., adding additional site components, changing site settings).
Microsoft may apply changes on how MS Teams integrates with SharePoint Online to offer Teams connected team/channel site, and any customization may be removed/lost as a result.