Organizations
Organizations are the administrative unit for Semaphore. This page explains how to set up notifications, manage users, and what settings are available.
Overview
In order to access any non-public resources on Semaphore you must be invited to the organization your team or company has created.
If you are trying out Semaphore for the first time, we suggest the Guided Tour, where we show how to create your first organization.
Organizations have:
- zero or more projects
- a billing plan
- one or more owners
- users and groups with role-based permissions
- a dedicated URL, for example,
https://my-org.semaphoreci.com
How to change organizations
Switch the active organization to change its settings or view its projects.
- UI
- CLI
To view or create other organizations, open the organization menu in the top right corner and select Change Organization.
You must install and connect the Semaphore command line to access your organizations
- Run
sem context
to show the organizations connected to the tool. The active organization has an asterisk (*) next to itView connected organizations$ sem context
myorg1_semaphoreci_com
myorg2_semaphoreci_com
* myorg3_semaphoreci_com - Change organization with
sem context <organization-name>
Change active organization$ sem context myorg1_semaphoreci_com
switched to context "myorg1_semaphoreci_com"
Managing users
Semaphore users a Role Based Access Control model to manage permissions at the organization and project level. You can add up to 500 persons to an organization.
You can only invite people with GitHub or BitBucket accounts to your organization.
To manage users in your organization, open the organization menu and select People. This tab shows users and groups in your organization along with their roles and groups.
How to invite users
To invite a user to your organization, press the Add people button. You have two options:
-
By their GitHub username, e.g.
TomFern
- Type their GitHub handle
- Press Invite
This option does not allow email addresses and doesn't send email notifications to users. To notify users via email, use the option below.
-
By existing projects
The list shows GitHub and BitBucket users that already have access to repositories but have not yet been added to the Semaphore project
- Select the users and optionally type an email
- Press Add selected to add them to the organization and project
In case of delays, click on the Refresh button in the top right corner of the page after sending an invite. This will trigger a sync between GitHub and Semaphore, which can typically last up to 2 to 5 minutes.
How to remove users
Users can only be removed from the organization when they don't own any projects. You must transfer the ownership of all the user's projects before they can be removed from the organization.
To remove users from the organization:
- Transfer any project ownership the user may have to another individual. The user must not own any projects
- Open the organization menu
- Select People
- Press the X button next to the username of the user you want to remove
Upon removal, access to all projects in the organization are revoked.
Only an Admins, Owner, or dedicated custom roles can remove users from the organization.
How to change user roles
To change the role of a user, press the Change Role button next to the person.
See organization roles to learn what roles are available.
How to create groups
User groups streamline user management by allowing bulk actions. After creating a group, you can:
- Add members to the group
- Assign a role to the group
All members of the group automatically inherit the permissions associated with the assigned role.
As an example, let's say you want to give the Finance team access to the Billing pages in your organization. To achieve that you can:
- Create a custom role with view permissions on the Billing page
- Create a Finance group
- Assign the new custom role to the group
- Add everyone in the Finance team to the group
- As the team changes, you can add or delete persons from the group
To create a group, open the organization menu and select People.
- Press on Create group
- Type in the group name and description
- Type the names of the persons to add to the group
- Press Save changes to create the group
The new group has the member role by default. You can change it by pressing the Modify Role button and selecting a different role.
You can also define custom organization roles if none of the pre-defined roles suit your needs.
How to change group roles
To change the role of a group, press the Change Role button next to the group.
How to add members groups
To add or remove users in a group, press the Modify group button next to it.
- Press the X button to remove the user from the group
- Type the name of the persons you want to add to the group
- Press Save changes to finish editing the group
How to view pre-defined roles
Semaphore provides pre-defined roles for organizations. You can see what actions each role can perform by following these steps:
- Open the Organization Settings menu
- Select Roles
- In the Organization Roles section, press the eye button next to the role you want to examine
The actions with enabled checkbox are allowed for that role.
How to create custom roles
Create custom roles to give your users the precise permissions they need.
- Open the Organization Settings menu
- Select Roles
- On the Organization Roles section, press New Role
- Give a name a description to the new role
- Enable the permissions allowed to the role. You can use the search box to narrow down options
- Press Save changes
Organization settings
To access your organization settings, open the organization menu and click on Settings.
General settings
Your organization main settings. Here, you can change its name, its URL, and control how workflows run.
The URL of your organization is the URL that leads to the Home page in your Semaphore organization. By default it follows the pattern your-organization-name.semaphoreci.com
Notifications
You can set up Slack and other webhook-based notifications to get your team notified whenever there project finishes running.
To learn more, see the notification documentation
Initialization agent
Some types of pipelines require initialization job to evaluate and compile the them before the workload beings.
Semaphore tries to pick the best type of agent automatically but you change it for the whole organization. This is particularly useful when you are using self-hosted agents.
To change the initialization job agent for all your projects in your organization, follow these steps:
- Select Initialization job from the settings menu
- Select the Environment type
- Select the Machine type
- Select the OS image
- Press Save
To change the initialization agent for a single project, see project pre-flight checks.
If you experience errors during initialization, see the initialization job logs to help troubleshoot the issue.
Okta integration
Integration with Okta allows you to automate user management within your Semaphore organization, as well as to use Okta apps for Single Sign On.
For more information, see the Okta integration page
Contacts
Manage your contact information.
In this section, you can add contact details in case the Semaphore Support Team needs to reach you. Add your name, phone number and email in three categories:
- Finance: used any billing-related messaging related to your organization
- Main: used as the primary point of communication
- Security: used to discuss any issues related to security in your organization
Audit logs
To support compliance, accountability, and security, Semaphore provides logs of audited events. Audit Log events are events that affect your organization, projects, users, or any other resources in Semaphore. Events contain information about when who and what was the performed activity.
You can find audit logs in your organization settings under Audit Logs.
The audit logs shows all the audited events in reverse chronological order. Latest events are shown first.
How to export audit logs
Audit logs can be exported in two ways:
- CSV file
- Streaming to an S3-compatible bucket
To export the logs as CSV, press the Export as CSV button.
To configure streaming to an S3-compatible bucket, press the Configure Streaming button and:
-
Select between AWS and Google Cloud
-
Type the region (AWS only)
-
Type the bucket name
-
Type the access token
- AWS: provide the Access Key ID and Access Key Secret for the IAM account
- Google Cloud: provide the HMAC Key for a service account
The service account credentials provided must have write and read access to the bucket
-
Press Looks Good
Audit logs are streamed to the bucket once per day.
Organization queues
You can use assign pipelines to organization queues to control the order in which pipelines are executed. See named queues for more information.
Activity monitor
The activity monitor show the agent utilization and the currently running pipelines.
To view the activity monitor, open your organization menu and select Activity Monitor.
In the activity monitor, you can see the machine quota utilization for your organization. Here, you can have an overview on how Semaphore Cloud machines and self-hosted agents are being used.
In the lower part of the activity monitor you can find the currently running workflows for all the projects in your organization. Use this to know what jobs are running, and see which ones are waiting in the queue to debug usage issues.
Plans and billing
Every organization is Semaphore is tied to a billing plan.
To see your spending:
-
Open your organization menu
-
Select Plans & Billing
-
The overview tab shows your monthly spending
-
You can view detailed breakdowns in three ways
- Spending: shows costs due to machine usage, storage and egress
- Projects: shows the costs generated by your most active projects
Transfer ownership
Before you can transfer of an organization, the following conditions need to happen:
- The new owner is a member of the organization
- The new owner must have logged in Semaphore at least once
- Only the current owner can transfer ownership
To promote a new owner to the organization:
- Go to the organization People tab
- Press the Change Role button
- Select Owner
It might take several minutes for the update to be completed.
Updating the ownership of an organization doesn't automatically transfer the project ownership. For more information, see How to transfer project ownership.
How to remove an owner
If you need to demote or remove an owner from the organization, any user with the Owner permission level needs to send an email to support@semaphoreci.com from the primary email address associated with their GitHub or Bitbucket account used to log into Semaphore.