# `addOwnerWithThreshold`

Adds the owner `owner` to the Safe and updates the threshold to `_threshold`.

<Callout type='warning'>
  This action can only be done via a Safe transaction.
</Callout>

## Usage


<Tabs items={['example.sol']}>
  <Tabs.Tab>
    ```solidity
    interface ISafe {
        function addOwnerWithThreshold(address owner, uint256 _threshold) external;
    }

    contract Example {
        function example() ... {
            (ISafe safe).addOwnerWithThreshold(0x..., 1);
        }
    }
    ```
  </Tabs.Tab>
</Tabs>


## Parameters

### `owner`

- **Type:** `address`

New owner address.

```solidity focus=2
(ISafe safe).addOwnerWithThreshold(
    0x...,
    1
);
```

### `_threshold`

- **Type:** `uint256`

New threshold.

```solidity focus=3
(ISafe safe).addOwnerWithThreshold(
    0x...,
    1
);
```

## Events

### `AddedOwner`

```solidity
event AddedOwner(address owner);
```

Emitted when an owner is added to the Safe.
### `ChangedThreshold`

```solidity
event ChangedThreshold(uint256 threshold);
```

Emitted when the threshold for confirmations is changed.
