Thank you for posting your query on Microsoft Q&A, from above description I could understand that you have want to Disable files upload option for end users on Teams.
Please do correct me if this is not the case by responding in the comments section.
To achieve this you may try Turn off Teams Native File Upload policy.
Since Microsoft Teams uses OneDrive and SharePoint to store and share content, but some organizations and users might prefer to use third-party storage providers.
This option is used when an organization have follows third party for content storage, you need to turn off the NativeFileEntryPoints
parameter in the Teams Files policy. This parameter is enabled by default, which shows the option to upload content from OneDrive or SharePoint to Teams chats or channels.
Sample PowerShell policy cmdlet for entire tenant:
Turn off native file upload point
Set-CsTeamsFilesPolicy -Identity Global -NativeFileEntryPoints Disabled
Turn on native file upload point
Set-CsTeamsFilesPolicy -Identity Global -NativeFileEntryPoints Enabled
Turn off NativeFileEntryPoints for specific users
When a user is assigned the CsTeamsFilesPolicy with -Identity UserPolicy, their native file entry points will be turned off.
New-CsTeamsFilesPolicy -Identity UserPolicy -NativeFileEntryPoints Disabled
Assign a policy to user
Grant-CsTeamsFilesPolicy -identity "user email id" -PolicyName UserPolicy
Update1
Yes, we can stop user from logging onto teams via personal or other organizational accounts:
For windows and MacOS devices follow How to restrict Teams sign-in on desktop devices, where policies can be applied via ADMX either using MDM (Intune) or GPO.
For iOS and Android devices you must follow: How to restrict Microsoft Teams sign-in on mobile devices
Thanks,
Akshay Kaushik
Please "Accept the answer" (Yes), and share your feedback if the suggestion answers you’re your query. This will help us and others in the community as well.