class AccountsUserPermissions extends Resource (View source)

The "user_permissions" collection of methods.

Typical usage is:

 $tagmanagerService = new Google\Service\TagManager(...);
 $user_permissions = $tagmanagerService->accounts_user_permissions;

Methods

create(string $parent, UserPermission $postBody, array $optParams = [])

Creates a user's Account & Container access. (user_permissions.create)

delete(string $path, array $optParams = [])

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

get(string $path, array $optParams = [])

Gets a user's Account & Container access. (user_permissions.get)

listAccountsUserPermissions(string $parent, array $optParams = [])

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

update(string $path, UserPermission $postBody, array $optParams = [])

Updates a user's Account & Container access. (user_permissions.update)

Details

UserPermission create(string $parent, UserPermission $postBody, array $optParams = [])

Creates a user's Account & Container access. (user_permissions.create)

Parameters

string $parent

GTM Account's API relative path. Example: accounts/{account_id}

UserPermission $postBody
array $optParams

Optional parameters.

Return Value

UserPermission

Exceptions

Exception

delete(string $path, array $optParams = [])

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

Parameters

string $path

GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id}

array $optParams

Optional parameters.

Exceptions

Exception

UserPermission get(string $path, array $optParams = [])

Gets a user's Account & Container access. (user_permissions.get)

Parameters

string $path

GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id}

array $optParams

Optional parameters.

Return Value

UserPermission

Exceptions

Exception

ListUserPermissionsResponse listAccountsUserPermissions(string $parent, array $optParams = [])

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

(user_permissions.listAccountsUserPermissions)

Parameters

string $parent

GTM Account's API relative path. Example: accounts/{account_id}

array $optParams

Optional parameters.

Return Value

ListUserPermissionsResponse

Exceptions

Exception

UserPermission update(string $path, UserPermission $postBody, array $optParams = [])

Updates a user's Account & Container access. (user_permissions.update)

Parameters

string $path

GTM UserPermission's API relative path. Example: accounts/{account_id}/user_permissions/{user_permission_id}

UserPermission $postBody
array $optParams

Optional parameters.

Return Value

UserPermission

Exceptions

Exception