function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sangramsing BagulSangramsing Bagul 

How to upload file to Salesforce user account using admin oauth web server authentication flow?

Hi,
We`re trying to download and upload Salesforce files for all salesforce users using admin oauth authentication process. By using Chatter file API we are able to get file information of salesforce users.
Here is api detail we are using
URL :- /connect/files/users/userId
Method :- GET/POST
Desc :- Upload a file, including references to external files, to the Files home or get information about files a user owns. These files don’t include files shared with a user, files a user follows, or general organization files.
This given api returns file listing for specified user but fails to upload file for same user.

GET works for all user including admin.
POST works only for admin user.

Is there any other way to upload Salesforce files to user account using admin oauth process?
Rajkishor HazarikaRajkishor Hazarika
I have the same question related to file upload. 
Sangramsing BagulSangramsing Bagul
Any help will be appreciated.