Managing Users
All user management features depend on an authentication mechanism having been configured in GoCD. Please ensure you have at least one authentication mechanism enabled before attempting to use any of the features mentioned in this chapter.
- Click on the menu item: Admin -> Users Management.
- Enter a name/email to search for (minimum 2 characters) and click “Search”
- This will perform a search across all authentication mechanisms configured (across authentication mechanisms such as passwordfile, AD, etc)
- From the list of results, select the user to add and click “Import User”
Roles allow you to group a set of users with similar functional duties and grant them a common set of permissions.
- build: Auto triggered pipeline with approval permissions granted to both developers and testers
- deploy: Manually triggered pipeline with approval permissions granted to testers only
With this setup, your entire team has visibility into what each other is doing, but you have controls around which role can do what.
To assign roles to users:
- Click on the menu item: Admin -> Users Management.
- Select the users you want assign roles to, or remove roles from.
- Click the “Roles” button to see a list of roles.
- Alternately, you can create a new role to apply to the selected users by typing in the name of a role in the input box and clicking “Add”.
This control allows you to modify admin privileges for users (not for roles). Enabling “System Admin” privilege to users adds them directly to configuration tag in GoCD’s configuration XML. This control is disabled when one or more of the selected users have implicit admin privilege through role(s).
In the image above, “User Four” has implicit administrator privilege. So that cannot be revoked from here. “User Five” is not a GoCD system administrator and can be made one by toggling the switch in their row.