# Access Groups

## The acs\_access\_group Object

* [Properties](#properties)
* [Errors](#errors)
* [Warnings](#warnings)
* [Events](#events)
* [Endpoints](#endpoints)

Group that defines the entrances to which a set of users has access and, in some cases, the access schedule for these entrances and users.

Some access control systems use [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups), which are sets of users, combined with sets of permissions. These permissions include both the set of areas or assets that the users can access and the schedule during which the users can access these areas or assets. Instead of assigning access rights individually to each access control system user, which can be time-consuming and error-prone, administrators can assign users to an access group, thereby ensuring that the users inherit all the permissions associated with the access group. Using access groups streamlines the process of managing large numbers of access control system users, especially in bigger organizations or complexes.

To learn whether your access control system supports access groups, see the corresponding [system integration guide](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/device-and-system-integration-guides/overview#access-control-systems).

{% tabs %}
{% tab title="JSON" %}

```json
{
  access_group_type: [example value],
  access_group_type_display_name: [example value],
  acs_access_group_id: [example value],
  acs_system_id: [example value],
  created_at: [example value],
  display_name: [example value],
  external_type: [example value],
  external_type_display_name: [example value],
  is_managed: [example value],
  name: [example value],
  warnings: [example value],
  workspace_id: [example value]
}
```

{% endtab %}
{% endtabs %}

***

## Properties

**`access_group_type`** *Enum*

{% hint style="warning" %}
**Deprecated**. Use `external_type`.
{% endhint %}

<details>

<summary>Enum values</summary>

* `pti_unit`
* `pti_access_level`
* `salto_ks_access_group`
* `brivo_group`
* `salto_space_group`
* `dormakaba_community_access_group`

</details>

***

**`access_group_type_display_name`** *String*

{% hint style="warning" %}
**Deprecated**. Use `external_type_display_name`.
{% endhint %}

***

**`acs_access_group_id`** *UUID*

ID of the access group.

***

**`acs_system_id`** *UUID*

ID of the access control system that contains the access group.

***

**`created_at`** *Datetime*

Date and time at which the access group was created.

***

**`display_name`** *String*

***

**`external_type`** *Enum*

Brand-specific terminology for the access group type.

<details>

<summary>Enum values</summary>

* `pti_unit`
* `pti_access_level`
* `salto_ks_access_group`
* `brivo_group`
* `salto_space_group`
* `dormakaba_community_access_group`

</details>

***

**`external_type_display_name`** *String*

Display name that corresponds to the brand-specific terminology for the access group type.

***

**`is_managed`** *Boolean*

***

**`name`** *String*

Name of the access group.

***

**`warnings`** *List* *of Objects*

Warnings associated with the `acs_access_group`.

<details>

<summary>Child Object Properties</summary>

**`created_at`** *Datetime*

```
Date and time at which Seam created the warning.
```

**`message`** *String*

```
Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.
```

**`warning_code`** *Enum*

```
Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.
```

</details>

***

**`workspace_id`** *UUID*

ID of the [workspace](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/core-concepts/workspaces) that contains the access group.

***

## Events

**`acs_access_group.deleted`**

An ACS access group was deleted.

<details>

<summary>Properties</summary>

**`acs_access_group_id`** *UUID*

ID of the affected access group.

**`acs_system_id`** *UUID*

ID of the access system.

**`connected_account_id`** *UUID*

ID of the connected account.

**`created_at`** *Datetime*

Date and time at which the event was created.

**`event_id`** *UUID*

ID of the event.

**`event_type`** *Enum*

Value: `acs_access_group.deleted`

**`occurred_at`** *Datetime*

Date and time at which the event occurred.

**`workspace_id`** *UUID*

ID of the workspace associated with the event.

</details>

***

## Endpoints

[**`/acs/access_groups/add_user`**](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/acs/access_groups/add_user)

Adds a specified [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) to a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).

[**`/acs/access_groups/get`**](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/acs/access_groups/get)

Returns a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).

[**`/acs/access_groups/list`**](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/acs/access_groups/list)

Returns a list of all [access groups](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).

[**`/acs/access_groups/list_accessible_entrances`**](https://github.com/seamapi/docs/blob/main/docs/api/acs/access_groups/list_accessible_entrances.md)

Returns a list of all accessible entrances for a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).

[**`/acs/access_groups/list_users`**](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/acs/access_groups/list_users)

Returns a list of all [access system users](https://docs.seam.co/latest/capability-guides/access-systems/user-management) in an [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).

[**`/acs/access_groups/remove_user`**](https://docs.seam.co/latest/~/revisions/DFdrUdS2jQOnbJTNDT5a/api/acs/access_groups/remove_user)

Removes a specified [access system user](https://docs.seam.co/latest/capability-guides/access-systems/user-management) from a specified [access group](https://docs.seam.co/latest/capability-guides/access-systems/assigning-users-to-access-groups).
