Chapter 7. Managing organizations Organizations divide Red Hat Satellite resources into logical groups based on ownership, purpose, content, security level, or other divisions. You can create and manage multiple organizations through Red Hat Satellite, then divide and assign your Red Hat subscriptions to each individual organization. This provides a method of managing the content of several individual organizations under one management system. 7.1. Examples of using organizations in Satellite Single Organization Using a single organization is well suited for a small business with a simple system administration chain. In this case, you create a single organization for the business and assign content to it. You can also use the Default Organization for this purpose. Multiple Organizations Using multiple organizations is well suited for a large company that owns several smaller business units. For example, a company with separate system administration and software development groups. In this case, you create one organization for the company and then an organization for each of the business units it owns. You then assign content to each organization based on its needs. External Organizations Using external organizations is well suited for a company that manages external systems for other organizations. For example, a company offering cloud computing and web hosting resources to customers. In this case, you create an organization for the company's own system infrastructure and then an organization for each external business. You then assign content to each organization where necessary. 7.2. Creating an organization Use this procedure to create an organization. To use the CLI instead of the Satellite web UI, see the CLI procedure . Procedure In the Satellite web UI, navigate to Administer > Organizations . Click New Organization . In the Name field, enter a name for the organization. In the Label field, enter a unique identifier for the organization. This is used for creating and mapping certain assets, such as directories for content storage. Use letters, numbers, underscores, and dashes, but no spaces. Optional: If you do not wish to enable Simple Content Access (SCA), uncheck the Simple Content Access checkbox. For more information on SCA, see Simple Content Access . Note Red Hat does not recommend disabling SCA as entitlement mode is deprecated. Optional: In the Description field, enter a description for the organization. Click Submit . If you have hosts with no organization assigned, select the hosts that you want to add to the organization, then click Proceed to Edit . In the Edit page, assign the infrastructure resources that you want to add to the organization. This includes networking resources, installation media, kickstart templates, and other parameters. You can return to this page at any time by navigating to Administer > Organizations and then selecting an organization to edit. Click Submit . CLI procedure To create an organization, enter the following command: Note Organizations created this way have Simple Content Access (SCA) enabled by default. If you wish to disable SCA, add the --simple-content-access false parameter to the command. Red Hat does not advise you to disable SCA because entitlement mode (not using SCA) is deprecated. Optional: To edit an organization, enter the hammer organization update command. For example, the following command assigns a compute resource to the organization: 7.3. Creating an organization debug certificate If you require a debug certificate for your organization, use the following procedure. Procedure In the Satellite web UI, navigate to Administer > Organizations . Select an organization that you want to generate a debug certificate for. Click Generate and Download . Save the certificate file in a secure location. Debug certificates for provisioning templates Debug Certificates are automatically generated for provisioning template downloads if they do not already exist in the organization for which they are being downloaded. 7.4. Browsing repository content using an organization debug certificate You can view an organization's repository content using a web browser or using the API if you have a debug certificate for that organization. Prerequisites You created and downloaded an organization certificate. For more information, see Section 7.3, "Creating an organization debug certificate" . Procedure Split the private and public keys from the certificate into two files. Open the X.509 certificate, for example, for the default organization: Copy the contents of the file from -----BEGIN RSA PRIVATE KEY----- to -----END RSA PRIVATE KEY----- , into a key.pem file. Copy the contents of the file from -----BEGIN CERTIFICATE----- to -----END CERTIFICATE----- , into a cert.pem file. To use a browser, you must first convert the X.509 certificate to a format your browser supports and then import the certificate. For Firefox users Convert the certificate into the PKCS12 format using the following command: In the Firefox browser, navigate to Edit > Preferences > Advanced Tab . Select View Certificates and click the Your Certificates tab. Click Import and select the .pfx file to load. Enter the following URL in the address bar to browse the accessible paths for all the repositories and check their contents: For CURL users To use the organization debug certificate with CURL, enter the following command: Ensure that the paths to cert.pem and key.pem are the correct absolute paths otherwise the command fails silently. Pulp uses the organization label, therefore, you must enter the organization label into the URL. 7.5. Deleting an organization You can delete an organization if the organization is not associated with any lifecycle environments or host groups. If there are any lifecycle environments or host groups associated with the organization you are about to delete, remove them by navigating to Administer > Organizations and clicking the relevant organization. Important Do not delete Default Organization created during installation because the default organization is a placeholder for any unassociated hosts in your Satellite environment. There must be at least one organization in the environment at any given time. Procedure In the Satellite web UI, navigate to Administer > Organizations . From the list to the right of the name of the organization you want to delete, select Delete . Click OK to delete the organization. CLI procedure Enter the following command to retrieve the ID of the organization that you want to delete: From the output, note the ID of the organization that you want to delete. Enter the following command to delete an organization:

Commands:
hammer organization create --name " My_Organization " --label " My_Organization_Label " --description " My_Organization_Description "
hammer organization update --name " My_Organization " --compute-resource-ids 1
vi 'Default Organization-key-cert.pem'
openssl pkcs12 -keypbe PBE-SHA1-3DES -certpbe PBE-SHA1-3DES -export -in cert.pem -inkey key.pem -out My_Organization_Label .pfx -name My_Organization
https:// satellite.example.com /pulp/content/
curl -k --cert cert.pem --key key.pem https:// satellite.example.com /pulp/content/ My_Organization_Label /Library/content/dist/rhel/server/7/7Server/x86_64/os/
hammer organization list
hammer organization delete --id Organization_ID