---
title: "Control server access"
description: "Assign user groups to Alpacon servers to control access. Review group-based permissions, filter servers by group, and organize assignments for your team."
---

> Full documentation index: https://docs.alpacax.com/llms.txt

# Control server access

Assign user groups to servers to manage who can reach them.

## Who can access a server

All server-related access including terminal connections, audit log viewing, and monitoring is allowed for assigned groups. A server's maintainer (a user holding the `server:maintainer` role on it), and any user with a custom role that grants `server:read` scoped to that server or one of its groups, can also reach it and use it as a work session or sudo policy target. See [Permission inheritance](/use/workspace/settings/roles/#permission-inheritance).

## Groups and External access [#external-access]

Groups also determine which direct-login records a `reviewer`, `auditor` or `security_admin` can read in [External access](/use/audit/governance/external-access/#read-scope). Findings, logins, standing entries, requests, summary, export and coverage counts follow the reader's server access. Membership alone does not grant a review role, and a workspace-wide review role does not grant records from every group. Only `admin` and `superuser` read the whole workspace.

A person with `auditor` assigned directly for one specific group can read that group's External access records without becoming a member. This assignment alone reads only that group's records. With a workspace-wide review role as well, it adds that group to the person's existing read scope. An inherited `auditor` role or an assignment for all groups does not add this access. The audit assignment grants no dispositions, policy changes, login claims or notifications for the group's servers.

Adding or removing a member, or changing a server's assigned groups, changes the records that person can read. To have one reviewer cover all servers, add them to every relevant server group. For an audit without membership, assign `auditor` directly for each group being audited. Policy owners must reach all servers an entry or request covers before changing it or deciding the request.

## Assign groups to servers

### During registration

1. Select **Authorized groups** when registering a server
2. Multiple groups can be selected
3. Users in selected groups can access the server

### For existing servers

1. Select server from server list
2. Click **Update**
3. Modify **Authorized groups**
4. Click **Save**

## Filter by groups

Filter servers by group in the server list.

**Using filters:**

1. Click the group filter dropdown at the top of the server list
2. Select desired group
3. Only servers assigned to that group are displayed

## Group-based access control

Control user access to servers through groups.

**How it works:**

1. Add users to a group
2. Assign that group to servers
3. All group users can access those servers

**Example:**

```
Group: developers
Members: user1, user2, user3

Servers: web-server-01, web-server-02
Assigned groups: developers

→ user1, user2, user3 can all access both servers
```

## Group management

### Create groups

See [Create groups](/use/iam/groups/create/) for group creation and management.

### Assign users to groups

See [Assign users to groups](/use/iam/groups/assign-users/) for user assignment.

## Best practices

### Environment-based separation

```
Group structure:
- production-servers
- staging-servers
- development-servers

Access permissions:
- production-servers: Senior engineers only
- staging-servers: All engineers
- development-servers: All developers
```

### Project-based separation

```
Group structure:
- project-alpha
- project-beta
- project-gamma

Each project team accesses only their servers
```

### Role-based separation

```
Group structure:
- frontend-team
- backend-team
- devops-team

Teams access only relevant servers
```

## Multiple group assignment

A single server can be assigned to multiple groups.

**Example:**

```
Server: shared-database-server
Assigned groups:
- backend-team
- devops-team

→ All members of both groups can access
```

A member of an assigned group opens sessions as their own account. Group owners and managers, the server's maintainers, and users with the Staff or Superuser role can also connect as other existing accounts on the server. See [Who can connect as which account](/use/servers/connect/#who-can-connect-as-which-account).

## The default group

Every workspace member belongs to the built-in **alpacon** group. Assigning the **alpacon** group to a server therefore opens that server to every member of the workspace. Use it when a server should be broadly accessible, and leave it off when access should stay limited to specific groups.

## Servers without groups

Servers with no assigned groups:

- Accessible to Superuser and Staff members, the server's maintainers, and anyone with an object-scoped `server:read` role bound to it
- Not accessible to other users
- Useful for isolated management servers

## Related docs

- [Create groups](/use/iam/groups/create/)
- [Assign users to groups](/use/iam/groups/assign-users/)
- [Set group permissions](/use/iam/groups/set-permissions/)
- [Register a server](/use/servers/register/)

Source: https://docs.alpacax.com/use/servers/groups/
