---
sidebar:
  label: roboto.auth.fga
  order: 0
title: roboto.auth.fga
---
## Module Contents

### AuthZTupleRecord

```python
class roboto.auth.fga.AuthZTupleRecord(/, **data: Any)
```

`from roboto.auth import AuthZTupleRecord`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/auth/fga.py#L10-L27)

Bases: `pydantic.BaseModel`

Deprecated. Data record of an access tuple, as the Roboto API returns it on API versions before 2026-11-19.

Use [`AccessGrant`](/docs/reference/python-sdk/roboto/auth/record_access#roboto.auth.record_access.AccessGrant) instead, the form the access routes of datasets, collections and Views take and return from API version 2026-11-19. A tuple gives a principal, such as a user, one relation to one resource, such as `viewer` on a collection. [`get_access()`](/docs/reference/python-sdk/roboto/domain/collections/collection#roboto.domain.collections.collection.Collection.get_access) returns these records, and [`edit_access()`](/docs/reference/python-sdk/roboto/domain/collections/collection#roboto.domain.collections.collection.Collection.edit_access) sends them to add and remove tuples.

**Parameters**

- **data** (`Any`)

**Attributes**

- **AuthZTupleRecord.obj** (`str`): Resource the relation is to, as `<type>:<id>`, such as `collection:<collection_id>`.
- **AuthZTupleRecord.relation** (`str`): Relation the principal holds to the resource, such as `viewer` or `editor`.
- **AuthZTupleRecord.user** (`str`): Principal that holds the relation, as `<type>:<id>`, such as `user:<user_id>` or `group:<group_id>`.

### EditAccessRequest

```python
class roboto.auth.fga.EditAccessRequest(/, **data: Any)
```

`from roboto.auth import EditAccessRequest`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/auth/fga.py#L30-L41)

Bases: `pydantic.BaseModel`

Deprecated. Request body for [`edit_access()`](/docs/reference/python-sdk/roboto/domain/collections/collection#roboto.domain.collections.collection.Collection.edit_access).

Use [`EditRecordAccessRequest`](/docs/reference/python-sdk/roboto/auth/record_access#roboto.auth.record_access.EditRecordAccessRequest) instead, which the access routes of datasets, collections and Views take from API version 2026-11-19. They take this request only on API versions before 2026-11-19.

**Parameters**

- **data** (`Any`)

**Attributes**

- **EditAccessRequest.add** (`list[AuthZTupleRecord]`) = `None`: Tuples to add. Defaults to none.
- **EditAccessRequest.remove** (`list[AuthZTupleRecord]`) = `None`: Tuples to remove. Defaults to none.

### GetAccessResponse

```python
class roboto.auth.fga.GetAccessResponse(/, **data: Any)
```

`from roboto.auth import GetAccessResponse`

[Source](https://github.com/roboto-ai/roboto-python-sdk/blob/main/src/roboto/auth/fga.py#L44-L62)

Bases: `pydantic.BaseModel`

Deprecated. Response body of [`get_access()`](/docs/reference/python-sdk/roboto/domain/collections/collection#roboto.domain.collections.collection.Collection.get_access).

Use [`RecordAccessResponse`](/docs/reference/python-sdk/roboto/auth/record_access#roboto.auth.record_access.RecordAccessResponse) instead, which the access routes of datasets, collections and Views return from API version 2026-11-19. They return this response only on API versions before 2026-11-19. [`edit_access()`](/docs/reference/python-sdk/roboto/domain/collections/collection#roboto.domain.collections.collection.Collection.edit_access) returns it too, holding the tuples after the edit.

**Parameters**

- **data** (`Any`)

**Attributes**

- **GetAccessResponse.group_permissions** (`dict[str, list[str]]`) = `None`: Unused. Roboto always returns an empty dictionary.

- **GetAccessResponse.relations** (`list[AuthZTupleRecord]`): Tuples on the resource.

  They name its owner, a View's author, a dataset's collections, an `associated_group` tuple for each group with access across the resource's organization (the organization's own group unless the resource is restricted), and the resource's grants. Access that follows from a tuple, such as the access each member of a group has, is not listed separately.
