class ManagementAccountUserLinks extends Resource (View source)

The "accountUserLinks" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $accountUserLinks = $analyticsService->management_accountUserLinks;

Methods

delete(string $accountId, string $linkId, array $optParams = [])

Removes a user from the given account. (accountUserLinks.delete)

insert(string $accountId, EntityUserLink $postBody, array $optParams = [])

Adds a new user to the given account. (accountUserLinks.insert)

listManagementAccountUserLinks(string $accountId, array $optParams = [])

Lists account-user links for a given account.

update(string $accountId, string $linkId, EntityUserLink $postBody, array $optParams = [])

Updates permissions for an existing user on the given account.

Details

delete(string $accountId, string $linkId, array $optParams = [])

Removes a user from the given account. (accountUserLinks.delete)

Parameters

string $accountId

Account ID to delete the user link for.

string $linkId

Link ID to delete the user link for.

array $optParams

Optional parameters.

Exceptions

Exception

EntityUserLink insert(string $accountId, EntityUserLink $postBody, array $optParams = [])

Adds a new user to the given account. (accountUserLinks.insert)

Parameters

string $accountId

Account ID to create the user link for.

EntityUserLink $postBody
array $optParams

Optional parameters.

Return Value

EntityUserLink

Exceptions

Exception

Lists account-user links for a given account.

(accountUserLinks.listManagementAccountUserLinks)

Parameters

string $accountId

Account ID to retrieve the user links for.

array $optParams

Optional parameters.

Return Value

EntityUserLinks

Exceptions

Exception

EntityUserLink update(string $accountId, string $linkId, EntityUserLink $postBody, array $optParams = [])

Updates permissions for an existing user on the given account.

(accountUserLinks.update)

Parameters

string $accountId

Account ID to update the account-user link for.

string $linkId

Link ID to update the account-user link for.

EntityUserLink $postBody
array $optParams

Optional parameters.

Return Value

EntityUserLink

Exceptions

Exception