<a id="cli-aws-amplifygen3-access-control"></a>

# access-control

## Description

Control who can open the deployments of an Amplify app. When an environment has access control on, visitors must sign in through the app’s identity provider, either IAM Identity Center or an OIDC provider, before they can see the site.

First set up the identity provider with `aws amplifygen3 access-control edit --type <team|oidc>`. Then turn access control on or off for each environment with `aws amplifygen3 access-control enable` and `aws amplifygen3 access-control disable`, and change who is allowed in with `aws amplifygen3 access-control edit --scope` or `--rule`. enable and edit act on the preview environment unless you pass -e; disable needs -e.

Also available as `aws amplifygen3 ac`.

## Synopsis

```
access-control
```

## Options

*None*

## Available Commands

* [disable](disable.md)
* [edit](edit.md)
* [enable](enable.md)
* [get](get.md)
* [list](list.md)
