Is there a way to read and update network domains permissions?

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?


You can update domain permissions using a groovy script until we add the API to update domain permissions.

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.

Any help would be appreciated. Thanks!