管理服务器安装中的用户帐户

This section provides information to help system administrators of self-hosted CircleCI Server installations manage accounts for their users. For an overview of user accounts, view the Admin settings overview from the CircleCI app by clicking on your profile in the top right corner and selecting Admin. This overview provides the active user count and the total number of licensed users.

账户概述
Figure 1. Admin Settings – Account Overview

暂停ing Accounts

When an account is no longer required, you can suspend the account so it will no longer be active and will not count against your license quota. To suspend an account:

  1. Navigate to your CircleCI Admin Settings

  2. Select Users from the Admin Settings menu

  3. Scroll to locate the account in either the Active or Inactive window

  4. 点击暂停旁边的帐户名称和帐户将出现在暂停的窗口中

暂停a User Account
图2.暂停帐户

重新激活暂停的用户帐户

重新激活已暂停的帐户:

  1. Navigate to your CircleCI Admin Settings

  2. Select Users from the Admin Settings menu

  3. 查看暂停的窗口

  4. 点击启用next to the User you wish to grant access and the account will appear in the Active window

重新激活现有用户
Figure 3. Rectivate Existing Users

控制帐户访问

Any user associated with your GitHub.com or GitHub Enterprise organization can create a user account for your CircleCI installation. In order to control who has access, you can automatically suspendall新用户,要求管理员在可以登录之前激活它们。要访问此功能:

  1. Navigate to your CircleCI Admin Settings

  2. 从“管理设置”菜单中选择“系统设置”

  3. 设置暂停新用户True

暂停新用户
图4.自动暂停新用户

激活暂停的新用户帐户

激活A.new自动暂停的帐户,并允许关联的用户访问Circleci服务器的安装:

  1. Navigate to your CircleCI Admin Settings

  2. Select Users from the Admin Settings menu

  3. 查看暂停的新用户窗口

  4. 点击启用next to the User you wish to grant access and the account will appear in the Active window

激活新用户
图5.激活暂停的新用户

Limit User Registrations by GitHub Organization

使用github.com时,您可以限制谁可以使用Circleci安装到人员一些连接到批准的组织列表。要访问此功能:

  1. 导航到Circleci管理设置页面

  2. 从“管理设置”菜单中选择“系统设置”

  3. 向下滚动到必需的ORG会员列表

  4. Enter the organization(s) you wish to approve. If entering more than one organization, use a comma delimited string

组织成员资格
图6。组织成员hip
任何形式的组织成员资格都在此批准功能的范围内,并且它不会阻止用户运行与他们可能属于的其他组织关联的构建。

完整用户列表

要查看Circleci Server安装的完整用户列表,请先将SSH进入您的服务机器,然后运行:

circleci dev-console (circle.model.user/where { :$and [{:sign_in_count {:$gte 0}}, {:login {:$ne nil}}]} :only [:login])

Deleting a User

如果需要从安装Circleci服务器的安装中删除用户,则需要首先SSH进入服务机器,然后使用以下命令删除,替换用户的Github用户名:

circleci dev-console (circle.http.api.admin-commands.user/delete-by-login-vcs-type! "github-username-of-user" :github)