How To Remove Inherited Environments From A Group

Overview

This article will provide two options for removing inherited Environments from a Group.

Via the Django Database Browser

  1. Navigate to the Django Database Browser located in Admin → Support Tools → Django Database Browser

  2. Once in the Django Database Browser, go to Accounts → Groups

  3. Once in Groups, select the Group to remove the inherited Environments from (this may take a moment to load)

  4. On the page for the specific Group, deselect the Inherited Environments to be removed then select save

Via shell_plus

  1. ssh to your CloudBolt instance

  2. Run the following command to open shell_plus:
    /opt/cloudbolt/manage.py shell_plus

  3. Once in shell_plus:

    #grab the Group to remove the inherited Environments, replace 00 with id of your Group
    group = Group.objects.get(id=00)
    
    #grab the Environment that is inherited in the group, replace 00 with id of your Environment
    env = Environment.objects.get(id=00)
    
    group.inherited_environments.remove(env)



Step 2 Heading

  1. Sub-step 1

  2. Sub-step 2


Step 3 Heading

  1. Sub-step 1

  2. Sub-step 2



Additional information

Include links to outside source articles or reference material if applicable

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.