# Function: grantTerms()

```ts
function grantTerms(access, spaceIds): NoteTerms;
```

Defined in: [packages/core/src/session/connect.ts:255](https://github.com/leifriksheim/minca/blob/main/core/src/session/connect.ts#L255)

The terms of the note a grant carries, for these spaces. Writing is every
command; `records` is records only, for a key the account trusts less: it
can't define collections, change who may do what, or write for the
account (`identity/abilities.ts`).

## Parameters

| Parameter | Type |
| ------ | ------ |
| `access` | `"read"` \| `"records"` \| `"write"` |
| `spaceIds` | readonly `string`[] \| `"all"` |

## Returns

[`NoteTerms`](https://minca.dev/api/core/interfaces/NoteTerms.md)
