Chapter 17. Users and Roles
17.1. Creating and Managing Users
17.1.1. Creating a User
Procedure 17.1. To Create a User:
- Navigate to→ and then click .
- Enter the required details on the User tab.
- On the Locations tab, select the required locations for this user.
- On the Organizations tab, select the required organizations for this user.
- On the Roles tab, select the required roles for this user. Active roles are displayed in the right panel.
- Clickto create the user.
17.1.2. Editing a User
Procedure 17.2. To Edit an Existing User:
- Navigate to→ .
- Click the user name of the user to be altered. General information about the user will appear on the right.
- You can modify the user's username, first name, surname, email address, default location, default organization, language, and password in thetab.
- You can modify the user's assigned locations in thetab.
- You can modify the user's assigned organizations in thetab. If no organization is selected, the user can access all available organizations.
- You can modify the user's assigned roles in thetab.
- Clickto save your changes.
17.1.3. Assigning Roles to a User
Procedure 17.3. To Assign a Role to a User:
- Navigate to→ .
- Click the user name of the user that you want to modify. General information about the user appears on the right.
- Click thetab to display the list of available role assignments.
- Select role you want to assign to the user in the Roles list. The list contains the predefined roles, as well as any custom roles, see Table 17.1, “Predefined Roles Available in Red Hat Satellite”. Alternatively, select the Administrator check box to assign all available permissions to the selected user.
17.1.4. Configuring Email Notifications
Procedure 17.4. To Configure Email Notifications:
- Navigate to→ .
- Click the user name of the user you want to edit.
- On the Mail Preferences tab, select Mail enabled to enable updates.
- Select the type of notifications the user will receive. The following notification types are available:
/etc/foreman/email.yaml. You can select to deliver messages through an
SMTPserver or using the sendmail command. For example, the following configuration uses SMTP as a delivery method:
production: email_delivery: delivery_method: :smtp smtp_settings: address: smtp.example.com port: 25 domain: example.com authentication: :login user_name: firstname.lastname@example.org password: satellite
passworddirectives specify the login credentials for the SMTP server. The default
production: email_delivery: delivery_method: :smtp smtp_settings: enable_starttls_auto: true address: "smtp.gmail.com" port: '587' domain: "smtp.gmail.com" authentication: :plain user_name: "email@example.com" password: "password"
- Mark the CA certificate of the SMTP server as trusted. To do so, execute the following commands on the Satellite server:
# cp mailca.crt /etc/pki/ca-trust/source/anchors/ # update-ca-trust enable # update-ca-trustWhere mailca.crt is the CA certificate of the SMTP server.
- Alternatively, add the following directive to
sendmailcommand as a delivery method:
production: email_delivery: delivery_method: :sendmail sendmail_settings: arguments: "-i -t -G"
argumentsdirective to pass command-line options to
sendmail, default value of
argumentsis "-i -t". For more information see the sendmail(1) man page.
/etc/foreman/email.yamlfile, run the following command to apply the changes:
# katello-service restart
17.1.5. Removing a User
Procedure 17.5. To Remove a User:
- On the main menu, click Users page.→ to open the
- Click the Delete link to the right of the username you want to delete.
- In the alert box, clickto delete the user.