I was poking around in the API docs, and looking over the CLI commands, but I can’t seem to find any listing or way to read in the current permissions on a Network > Domains, or update them. Other items where permissions are via groups, there is (or was) a --group-all to sort of clear the default “All” permission to the item, but I’m not seeing anything of the sort or individual group permission listings in the API or CLI to these objects.
Does anyone happen to know if there is a listing and if so what API endpoint or CLI command/flags would work to display and update these values?
Hi @aabraham, my colleague @rjr162 wrote the original post. I’m not familiar with how/where to run a script like this, is there a groovy framework on the Morpheus appliance?
Also, how might we alter your script to remove the “all” permission that is granted by default and iterate across all of the domains instead of doing them one by one? This would be a huge time-saver for us.
Thanks! I guess we never noticed that groovy task type since we never used it before, haha.
Yes, we are looking to remove that “all” permission on ALL domains in our environment.
(The issue is that we want to implement the EfficientIP plugin to use with our IPAM solution, but it ingests all of the domains from EfficientIP and by default gives everyone permission to all of them - we don’t want that, so we need to be able to remove the “all” permission en masse without having to click each one in the UI)