# Introducing User Admin

The User Admin application lets an administrator add, delete, and manage Hue user accounts and groups, and configure group permissions. The permissions allow users, based on their group membership, to launch Hue applications and use application features. You can add users and groups individually, or import them from an LDAP directory.

## Contents

- Introducing User Admin
- Starting User Admin
- Working with User Accounts

- Adding a User Account
- Deleting a User Account
- Editing a User Account
- Importing Users from an LDAP Directory
- Syncing Users and Groups with an LDAP directory

- Working with Groups

- Adding a Group
- Adding Users to a Group
- Deleting a Group
- Editing a Group
- Importing Groups from an LDAP Directory

- Managing Application Permissions

# Starting User Admin

To start User Admin:

- Click the User Admin icon ( ) in the navigation bar at the top of the Hue browser page.

# Working with User Accounts

The Hue User Admin application provides two levels of user privileges:

- Superusers — have permissions to perform administrative functions – add and delete users, add and delete groups, assign permissions to groups. The first user who logs into Hue after its initial installation becomes the first superuser. That superuser can then create more superusers and user accounts. Later, the superuser can also change any existing user account into a superuser. A superuser can also import users and groups from an LDAP server.
- Users — can log in to Hue and run Hue applications, subject to the permissions provided by the Hue groups to which they belong.

| Note: To do the management tasks described in this chapter, you must log into Hue using a superuser account. Users who don't have superuser permissions can only change their name, e-mail address, and password.

## Adding a User Account

To add a user account:

1. In the User Admin page, click Add User.
2. In the Add User dialog box, add information about the user.
   The following table describes the options in the Add User dialog box.

   User Account Option | Description
   --- | ---
   Username | Specify a user name that contains only letters, numbers, and underscores; blank spaces are not allowed and the name cannot begin with a number. The user name is used to log into Hue and in file permissions and job submissions. This is a required field.
   First name and Last name | Specify the user's first and last name.
   E-mail address | Specify the user's e-mail address. The e-mail address is used by the Job Designer and Beeswax applications to send users an e-mail message after certain actions have occurred. The Job Designer sends an e-mail message after a user's job has completed. Beeswax sends a message after a query has completed. If an e-mail address is not specified, the application will not attempt to email the user.
   Active | Select this option to enable this user account and allow the user to log in. Deselect this option to disable an account without deleting it.
   Superuser status | Select this option to assign superuser privileges to the user.
   Password | Specify a password for the user. This is a required field.

3. Click Save to save the information you specified and close the Add User dialog box.

## Deleting a User Account

To delete a user account:

1. Select Delete in the row with the user name.
2. Click Ok to confirm.

## Editing a User Account

To edit a user account:

1. Double-click the user account you want to edit in the Hue Users list, or Select Edit in the row with the user name.
2. Make the changes to the user account and then click Save.

## Importing Users from an LDAP Directory

Hue must be configured to use an external LDAP directory (OpenLDAP or Active Directory). See Hue Installation.

| Note Importing users from an LDAP directory does not import any password information. You must add passwords manually in order for a user to log in.

To add a user from an external LDAP directory:

1. Click Add/sync LDAP user.
2. In the Add or Sync a LDAP user dialog, type the user name in the Username field.
   - Check the Distinguished Name checkbox to use a full distinguished name for the user.
     This imports the user's first and last name, username, and email, but does not store the user password.
   - If the user already exists in the User Admin, this will sync the user information in User Admin with what is currently in the LDAP directory.

## Syncing Users and Groups with an LDAP directory

You can sync the Hue user database with the current state of the LDAP directory using the Sync LDAP users/groups function. This will update the user/group information for the already imported users and groups. It does not import any new users or groups.

1. Click Sync LDAP users/groups.
2. In the Sync LDAP users and groups dialog, click Sync to perform the sync.

# Working with Groups

Superusers can add groups, delete the groups they have created, configure group permissions, and assign users to group memberships.

## Adding a Group

You can add groups, and delete the groups you've added. You can also import groups from an LDAP directory.

To add a group:

1. In the User Admin window, click Groups and then click Add Group.
2. In the Add Group dialog box, specify a name for the group. Group names can only be letters, numbers, and underscores; blank spaces are not allowed.
3. To add users to the group, check the names in the list provided or check Select All.
4. Click Save to save the information you specified and close the Add Group dialog box.

## Adding Users to a Group

1. In the User Admin window, click Groups.
2. In the Groups list, click the Edit button.
3. To add users to the group, check the names in the list provided or check Select All.

## Deleting a Group

To delete a group:

1. Click Groups to view the Groups list.
2. Click the Delete button to the right of the group you want to delete.
3. Click Yes to confirm.

## Editing a Group

You can add and remove users, and create subgroups for groups created manually in Authorization Manager.

To edit a group:

1. Click Groups to view the Groups list.
2. Click the Edit button to the right of the group you want to modify.
3. Make the changes for the group and then click Save.

## Importing Groups from an LDAP Directory

To add a group from an external LDAP directory:

1. From the Groups tab, Click Add/sync LDAP user.
2. In the Add or Sync a LDAP group dialog, type the group name in the Name field.
   - Check the Distinguished Name checkbox to use a full distinguished name.
   - Check Import new members to also import the members of the group. or the group.

# Managing Application Permissions

Permissions for Hue applications are granted to groups, with users gaining permissions based on their group membership. Superusers can assign or remove permissions from groups, including groups imported from LDAP.

Group permissions define the applications within Hue that group members are allowed to launch, and the features they can use.

To assign or change Hue application permissions:

1. Click Permissions.
2. Click the Edit button next to the application for which you want to assign permissions.
3. Select the Groups you want to have permission for the application. You can check Select All to select all groups.
4. Click Save.
   The new groups will appear in the Groups column in the Hue Permissions list.