Welcome to the Smartsheet Forum Archives
The posts in this forum are no longer monitored for accuracy and their content may no longer be current. If there's a discussion here that interests you and you'd like to find (or create) a more current version, please Visit the Current Forums.
Accessing HomeRessource of specific Users via JavaSDK
Hi there!
I'm developing a statistic tool for monitoring file creations with smartsheet in my company.
First of all, thanks for the brilliant Java SDK, that makes live so much easier when trying to integrate Smartsheet in other applications!
Currently I'm at the point where i have to access every user's home directory, to receive data about their sheets and workspaces.
I know, that you can get a list of all users via the UserResources, which returns me an ArrayList of users available in our smartsheet plan.
UserResources().listUsers().getData();
I'm using this list to iterate over each user and accessing sheets, workspaces, etc.. Anyway, that was my plan. Unfortunately i can't find out how to receive the Home Directory of each user.
The API tells me that i can access my own Home Directory with the HomeResource Instance using homeResource().getHome(EnumSet.of(SourceInclusion.SOURCE)), but i can't find out how to receive the HomeResources of other users.
Does anyone have an idea how to continue from here?
I'm looking forward for your answers.
Cheers
Chris
Comments
-
Hi Chris,
This is a System Admin feature in the API. You'll need to be a System Admin in your org, but you can use the API to either assume other users and get their Home folder directories: https://smartsheet-platform.github.io/api-docs/#assume-user
With SysAdmin Permissions, you can also get a list of all sheets, regardless of their sharing permissions: https://smartsheet-platform.github.io/api-docs/#list-all-org-sheets
Categories
- All Categories
- 14 Welcome to the Community
- Smartsheet Customer Resources
- 64.2K Get Help
- 419 Global Discussions
- 221 Industry Talk
- 461 Announcements
- 4.8K Ideas & Feature Requests
- 143 Brandfolder
- 141 Just for fun
- 58 Community Job Board
- 462 Show & Tell
- 32 Member Spotlight
- 1 SmartStories
- 299 Events
- 38 Webinars
- 7.3K Forum Archives