# Tag Manager API . accounts . permissions

## Instance Methods

Creates a user's Account & Container Permissions.

Removes a user from the account, revoking access to it and all of its

Gets a user's Account & Container Permissions.

List all users that have access to the account along with Account and

Updates a user's Account & Container Permissions.

### Method Details

`create(accountId, body=None, x__xgafv=None)`

    Creates a user's Account & Container Permissions.

    Args:
      accountId: string, The GTM Account ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a user's permissions to an account and its container.
      "emailAddress": "A String", # User's email address.
          # @mutable tagmanager.accounts.permissions.create
      "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
          # @mutable tagmanager.accounts.permissions.create
          # @mutable tagmanager.accounts.permissions.update
        "permission": [ # List of Account permissions.
            # Valid account permissions are <code>read</code> and <code>manage</code>.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "permissionId": "A String", # Account Permission ID.
      "accountId": "A String", # GTM Account ID.
      "containerAccess": [ # GTM Container access permissions.
          # @mutable tagmanager.accounts.permissions.create
          # @mutable tagmanager.accounts.permissions.update
        { # Defines the Google Tag Manager Container access permissions.
          "containerId": "A String", # GTM Container ID.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
          "permission": [ # List of Container permissions.
              # Valid container permissions are: <code>read, edit, delete, publish</code>.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a user's permissions to an account and its container.
        "emailAddress": "A String", # User's email address.
            # @mutable tagmanager.accounts.permissions.create
        "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          "permission": [ # List of Account permissions.
              # Valid account permissions are <code>read</code> and <code>manage</code>.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
        "permissionId": "A String", # Account Permission ID.
        "accountId": "A String", # GTM Account ID.
        "containerAccess": [ # GTM Container access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          { # Defines the Google Tag Manager Container access permissions.
            "containerId": "A String", # GTM Container ID.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
            "permission": [ # List of Container permissions.
                # Valid container permissions are: <code>read, edit, delete, publish</code>.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
              "A String",
            ],
          },
        ],
      }

`delete(accountId, permissionId, x__xgafv=None)`

    Removes a user from the account, revoking access to it and all of its
    containers.

    Args:
      accountId: string, The GTM Account ID. (required)
      permissionId: string, The GTM User ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

`get(accountId, permissionId, x__xgafv=None)`

    Gets a user's Account & Container Permissions.

    Args:
      accountId: string, The GTM Account ID. (required)
      permissionId: string, The GTM User ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a user's permissions to an account and its container.
        "emailAddress": "A String", # User's email address.
            # @mutable tagmanager.accounts.permissions.create
        "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          "permission": [ # List of Account permissions.
              # Valid account permissions are <code>read</code> and <code>manage</code>.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
        "permissionId": "A String", # Account Permission ID.
        "accountId": "A String", # GTM Account ID.
        "containerAccess": [ # GTM Container access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          { # Defines the Google Tag Manager Container access permissions.
            "containerId": "A String", # GTM Container ID.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
            "permission": [ # List of Container permissions.
                # Valid container permissions are: <code>read, edit, delete, publish</code>.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
              "A String",
            ],
          },
        ],
      }

`list(accountId, x__xgafv=None)`

    List all users that have access to the account along with Account and
    Container Permissions granted to each of them.

    Args:
      accountId: string, The GTM Account ID. (required)
      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # List AccountUsers Response.
        "userAccess": [ # All GTM AccountUsers of a GTM Account.
          { # Represents a user's permissions to an account and its container.
            "emailAddress": "A String", # User's email address.
                # @mutable tagmanager.accounts.permissions.create
            "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
              "permission": [ # List of Account permissions.
                  # Valid account permissions are <code>read</code> and <code>manage</code>.
                  # @mutable tagmanager.accounts.permissions.create
                  # @mutable tagmanager.accounts.permissions.update
                "A String",
              ],
            },
            "permissionId": "A String", # Account Permission ID.
            "accountId": "A String", # GTM Account ID.
            "containerAccess": [ # GTM Container access permissions.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
              { # Defines the Google Tag Manager Container access permissions.
                "containerId": "A String", # GTM Container ID.
                    # @mutable tagmanager.accounts.permissions.create
                    # @mutable tagmanager.accounts.permissions.update
                "permission": [ # List of Container permissions.
                    # Valid container permissions are: <code>read, edit, delete, publish</code>.
                    # @mutable tagmanager.accounts.permissions.create
                    # @mutable tagmanager.accounts.permissions.update
                  "A String",
                ],
              },
            ],
          },
        ],
      }

`update(accountId, permissionId, body=None, x__xgafv=None)`

    Updates a user's Account & Container Permissions.

    Args:
      accountId: string, The GTM Account ID. (required)
      permissionId: string, The GTM User ID. (required)
      body: object, The request body.
        The object takes the form of:

    { # Represents a user's permissions to an account and its container.
      "emailAddress": "A String", # User's email address.
          # @mutable tagmanager.accounts.permissions.create
      "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
          # @mutable tagmanager.accounts.permissions.create
          # @mutable tagmanager.accounts.permissions.update
        "permission": [ # List of Account permissions.
            # Valid account permissions are <code>read</code> and <code>manage</code>.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "permissionId": "A String", # Account Permission ID.
      "accountId": "A String", # GTM Account ID.
      "containerAccess": [ # GTM Container access permissions.
          # @mutable tagmanager.accounts.permissions.create
          # @mutable tagmanager.accounts.permissions.update
        { # Defines the Google Tag Manager Container access permissions.
          "containerId": "A String", # GTM Container ID.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
          "permission": [ # List of Container permissions.
              # Valid container permissions are: <code>read, edit, delete, publish</code>.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
    }

      x__xgafv: string, V1 error format.
        Allowed values
          1 - v1 error format
          2 - v2 error format

    Returns:
      An object of the form:

        { # Represents a user's permissions to an account and its container.
        "emailAddress": "A String", # User's email address.
            # @mutable tagmanager.accounts.permissions.create
        "accountAccess": { # Defines the Google Tag Manager Account access permissions. # GTM Account access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          "permission": [ # List of Account permissions.
              # Valid account permissions are <code>read</code> and <code>manage</code>.
              # @mutable tagmanager.accounts.permissions.create
              # @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
        "permissionId": "A String", # Account Permission ID.
        "accountId": "A String", # GTM Account ID.
        "containerAccess": [ # GTM Container access permissions.
            # @mutable tagmanager.accounts.permissions.create
            # @mutable tagmanager.accounts.permissions.update
          { # Defines the Google Tag Manager Container access permissions.
            "containerId": "A String", # GTM Container ID.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
            "permission": [ # List of Container permissions.
                # Valid container permissions are: <code>read, edit, delete, publish</code>.
                # @mutable tagmanager.accounts.permissions.create
                # @mutable tagmanager.accounts.permissions.update
              "A String",
            ],
          },
        ],
      }