Admin Sharing to workspaces by default
Good morning!
I'm wondering if anyone has created an automation, either through the API, or some other third party app, to automatically share a system admin to a workspace when it's created?
We're a very large company, Smartsheet use is growing quickly, and we're thinking about how do we ensure that our system admins have access for trouble shooting, or re-assigning ownership when someone leaves or changes roles.
While we can simply ask everyone to do this, we'd prefer to automate it so it's not subject to operator error, or someone simply forgetting.
Thanks for any feedback you may have for me.
Answers
-
In its simplest implementation
Run a regular CRON job to:
Find all your workspaces -
PaginatedResult<Workspace> workspaces = smartsheet.WorkspaceResources.ListWorkspaces(
null // PaginationParameters
);
Then add a share by passing in the WorkspaceId- i.e for each Workspace in Workspaces
Share[] shareSpecification = new Share[] { new Share { Email = "user.email@you.com", AccessLevel = AccessLevel.ADMIN } }; // Share workspace IList<Share> addressList = smartsheet.WorkspaceResources.ShareResources.ShareTo( 999999999999, // long workspaceId in you foreach shareSpecification, true // Nullable<bool> sendEmail - good confirmation mechanism );
Then you can make it a bit slicker by, maybe, keeping a list of ones you have done or just seeing if admin had already been added by looping round the share list.
Regards,
Brian
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.8K Get Help
- 434 Global Discussions
- 138 Industry Talk
- 470 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 65 Community Job Board
- 486 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives