class ManagementWebpropertyUserLinks extends Resource (View source)

The "webpropertyUserLinks" collection of methods.

Typical usage is:

 $analyticsService = new Google\Service\Analytics(...);
 $webpropertyUserLinks = $analyticsService->management_webpropertyUserLinks;

Methods

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

Removes a user from the given web property. (webpropertyUserLinks.delete)

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

Adds a new user to the given web property. (webpropertyUserLinks.insert)

listManagementWebpropertyUserLinks(string $accountId, string $webPropertyId, array $optParams = [])

Lists webProperty-user links for a given web property.

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

Updates permissions for an existing user on the given web property.

Details

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

Removes a user from the given web property. (webpropertyUserLinks.delete)

Parameters

string $accountId

Account ID to delete the user link for.

string $webPropertyId

Web Property 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, string $webPropertyId, EntityUserLink $postBody, array $optParams = [])

Adds a new user to the given web property. (webpropertyUserLinks.insert)

Parameters

string $accountId

Account ID to create the user link for.

string $webPropertyId

Web Property ID to create the user link for.

EntityUserLink $postBody
array $optParams

Optional parameters.

Return Value

EntityUserLink

Exceptions

Exception

Lists webProperty-user links for a given web property.

(webpropertyUserLinks.listManagementWebpropertyUserLinks)

Parameters

string $accountId

Account ID which the given web property belongs to.

string $webPropertyId

Web Property ID for the webProperty-user links to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to.

array $optParams

Optional parameters.

Return Value

EntityUserLinks

Exceptions

Exception

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

Updates permissions for an existing user on the given web property.

(webpropertyUserLinks.update)

Parameters

string $accountId

Account ID to update the account-user link for.

string $webPropertyId

Web property 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