Set a default workspace(设置默认工作区)¶
A default workspace is the workspace a user will be directed to when going to /workspace/carbon/.
Since users can have access to more than one Carbon workspace, we recommend setting a default workspace for each user group. In order to set a default workspace for a user group, the workspace must be both promoted and have that user group in the configured list of user groups for which the workspace is default.
:::callout{theme="neutral"} To redirect users to a default Carbon workspace when logging into Foundry, you must first configure the home page URL. :::
Adding a user group to the default workspace list¶
Every Carbon workspace has a list containing the groups for which that workspace is the default. Administrators can update this list in the Access tab of the configuration editor for a given workspace, under the Default workspace heading.

:::callout{theme="neutral"} Note that default workspace updates are saved independently from other configuration changes; after making a change, the new default workspace will be applied immediately. :::
What if a user group has no default workspace configured?¶
If a user is not part of any user group that has a default workspace configured, the user will be asked to choose from the list of promoted workspaces when they first visit Carbon. From this point onwards, the most recently visited workspace is treated as the user's default workspace.
Note that the most recently visited workspace is stored in a browser cookie, so if the user clears their cookies or accesses Carbon on another browser/device, they will again be asked to choose from a list of available workspaces.
What if a user has more than one default workspace?¶
If a user has two or more default workspaces, they effectively will not have a default workspace. This will result in the same behavior as occurs when no default workspace is configured. This might occur under two conditions:
- The user is in a user group with two or more default workspaces.
- The user is in two or more user groups with distinct default workspaces.
If this condition applies, and the user has visited Carbon before, they will be defaulted to their most recently visited workspace, as outlined above.
中文翻译¶
设置默认工作区¶
默认工作区是指用户访问 /workspace/carbon/ 时将被引导至的工作区。
由于用户可能拥有多个 Carbon 工作区的访问权限,我们建议为每个用户组设置一个默认工作区。要为某个用户组设置默认工作区,该工作区必须同时满足两个条件:已被推广(promoted),并且该用户组已包含在配置的默认工作区用户组列表中。
:::callout{theme="neutral"} 要将用户重定向到默认的 Carbon 工作区,您需要先配置主页 URL。 :::
将用户组添加到默认工作区列表¶
每个 Carbon 工作区都包含一个列表,其中列出了将该工作区设为默认的用户组。管理员可以在配置编辑器的访问(Access)选项卡中,在默认工作区(Default workspace)标题下更新此列表。

:::callout{theme="neutral"} 请注意,默认工作区的更新与其他配置更改是独立保存的;更改后,新的默认工作区将立即生效。 :::
如果用户组未配置默认工作区会怎样?¶
如果用户不属于任何已配置默认工作区的用户组,则在首次访问 Carbon 时,系统会要求他们从已推广的工作区列表中进行选择。此后,最近访问过的工作区将被视为该用户的默认工作区。
请注意,最近访问的工作区存储在浏览器 Cookie 中,因此如果用户清除 Cookie 或在其他浏览器/设备上访问 Carbon,系统将再次要求他们从可用工作区列表中进行选择。
如果用户有多个默认工作区会怎样?¶
如果用户有两个或更多默认工作区,实际上他们将没有默认工作区。这将导致与未配置默认工作区相同的行为。这种情况可能发生在以下两种条件下:
- 用户所在的用户组有两个或更多默认工作区。
- 用户属于两个或更多用户组,且这些组有不同的默认工作区。
如果满足此条件,且用户之前访问过 Carbon,则系统会默认将其引导至最近访问的工作区,如上所述。