# Tag Manager API . accounts . permissions

## Instance Methods

Close httplib2 connections.

Creates a user's Account & Container Permissions.

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

Gets a user's Account & Container Permissions.

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

Updates a user's Account & Container Permissions.

### Method Details

`close()`

    Close httplib2 connections.

`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.
      "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "permissionId": "A String", # Account Permission ID.
    }

      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.
      "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "permissionId": "A String", # Account Permission ID.
    }

`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.
      "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "permissionId": "A String", # Account Permission ID.
    }

`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.
          "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
              "A String",
            ],
          },
          "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
                "A String",
              ],
            },
          ],
          "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
          "permissionId": "A String", # Account Permission ID.
        },
      ],
    }

`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.
      "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "permissionId": "A String", # Account Permission ID.
    }

      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.
      "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 read and manage. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
          "A String",
        ],
      },
      "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: read, edit, delete, publish. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
            "A String",
          ],
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "permissionId": "A String", # Account Permission ID.
    }