You guys writing tools and modules for your teams...
How are you managing permissions, for lack of a better word? I've moved quickly from writing myself functions and keeping them in my own profile, to writing cmdlets with better features and handling, more documentation, etc, and putting them in modules. Right now those modules are in use by other members of the 'server' team, but we'll be adding features for desktop support and giving it out to them as well.
Right now I have a module manifest which links in several nested modules as well as runs a 'ScriptsToProcess' ps1. I'd like to preserve the structure, if possible, if only for appearance and continuity reasons. However, its been a little annoying already since my team members have varying permissions in things like Exchange or SQL, so some cmdlets work and others dont (due to dependencies). I'm willing to reorganize these cmdlets into modules based on permission level if i can build a way to load certain modules based on username. Should i go with semi-static values kept in like SQL, CSV or XML, and then run tests for which module to load? I've also considered using the ACLs on the psm1 files themselves as a test, to determine if the file should be loaded or not.
Do you guys have a working system for this?
Posted Sep 22, 2016, 9:33 PM UTC
I would recommend that you setup an internal repository and set permissions there. In addition, if you have AD then you can grant permissions to certain directories or files based on Security Groups. I'm sure each role has their own security groups, use what you already have. If you don't, then well you have other problems. ;)
Yea, we've been tossing around an idea like this. Obviously we have a lot more going on than just the tools module, so it's a really good idea. We're looking at something called (I think) bonobo. Know anything about that? Or do you have another suggestion?