Tag Manager API . accounts . user_permissions

Instance Methods

close()

Close httplib2 connections.

create(parent, body=None, x__xgafv=None)

Creates a user's Account & Container access.

delete(path, x__xgafv=None)

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

get(path, x__xgafv=None)

Gets a user's Account & Container access.

list(parent, pageToken=None, x__xgafv=None)

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

list_next()

Retrieves the next page of results.

update(path, body=None, x__xgafv=None)

Updates a user's Account & Container access.

Method Details

close()
Close httplib2 connections.
create(parent, body=None, x__xgafv=None)
Creates a user's Account & Container access.

Args:
  parent: string, GTM Account's API relative path. Example: accounts/{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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
  },
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
    },
  ],
  "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
  "path": "A String", # GTM UserPermission's API relative path.
}

  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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
  },
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
    },
  ],
  "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
  "path": "A String", # GTM UserPermission's API relative path.
}
delete(path, x__xgafv=None)
Removes a user from the account, revoking access to it and all of its containers.

Args:
  path: string, GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id} (required)
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format
get(path, x__xgafv=None)
Gets a user's Account & Container access.

Args:
  path: string, GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
  },
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
    },
  ],
  "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
  "path": "A String", # GTM UserPermission's API relative path.
}
list(parent, pageToken=None, x__xgafv=None)
List all users that have access to the account along with Account and Container user access granted to each of them.

Args:
  parent: string, GTM Account's API relative path. Example: accounts/{account_id} (required)
  pageToken: string, Continuation token for fetching the next page of results.
  x__xgafv: string, V1 error format.
    Allowed values
      1 - v1 error format
      2 - v2 error format

Returns:
  An object of the form:

    { # List user permissions response.
  "nextPageToken": "A String", # Continuation token for fetching the next page of results.
  "userPermission": [ # All GTM UserPermissions 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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
      },
      "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
      "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
        },
      ],
      "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
      "path": "A String", # GTM UserPermission's API relative path.
    },
  ],
}
list_next()
Retrieves the next page of results.

        Args:
          previous_request: The request for the previous page. (required)
          previous_response: The response from the request for the previous page. (required)

        Returns:
          A request object that you can call 'execute()' on to request the next
          page. Returns None if there are no more items in the collection.
        
update(path, body=None, x__xgafv=None)
Updates a user's Account & Container access.

Args:
  path: string, GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
  },
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
    },
  ],
  "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
  "path": "A String", # GTM UserPermission's API relative path.
}

  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": "A String", # Whether the user has no access, user access, or admin access to an account. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
  },
  "accountId": "A String", # The Account ID uniquely identifies the GTM Account.
  "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": "A String", # List of Container permissions. @mutable tagmanager.accounts.permissions.create @mutable tagmanager.accounts.permissions.update
    },
  ],
  "emailAddress": "A String", # User's email address. @mutable tagmanager.accounts.permissions.create
  "path": "A String", # GTM UserPermission's API relative path.
}