GET all users via API

  • 1
  • Problem
  • Updated 3 weeks ago
Hi all,
I can't find a way to get all users via API. 
https://api.sharefile.com/rest/docs/resource.aspx?name=Users only supports getting a single user. Looking at the reports an administrator can create I can see that a "Users" report type is supported that does exactly that. After creating the report via the UI I can get the report definition and report record data via the API. The report type created is UserSummaryLooking at the reports API (https://api.sharefile.com/rest/docs/resource.aspx?name=ShareFile.Api.Models.Report) seems like UserSummary report type is not supported. Trying to create the UserSummary report via API succeeds in creating the report definition but report execution fail with the following error:
 "Message":"Unexpected Error: Object reference not set to an instance of an object."
Thanks,
Uri
Photo of Uri Ben-dor

Uri Ben-dor

  • 1 Post
  • 0 Reply Likes

Posted 4 weeks ago

  • 1
Photo of Pratik Somanagoudar

Pratik Somanagoudar, Employee

  • 18 Posts
  • 1 Reply Like
Hi Uri,

I looked at our logs and tried to figure out at what went wrong with your request. If I found the correct request, it seems like the JSON body provided is missing a " ," (comma) and hence json validation is failing. However I do see we do not throw a 400 exception in this case which I would like to fix in future releases. Please let me know if this helps.

Thanks
Pratik