ga_users_update: Update a user access in Google Analytics

View source: R/users.R

ga_users_updateR Documentation

Update a user access in Google Analytics

Description

This is for altering existing user access.

Usage

ga_users_update(
  linkId,
  update_object,
  accountId,
  webPropertyId = NULL,
  viewId = NULL
)

Arguments

linkId

The linkId to update

update_object

A list that will be turned into JSON that represents the new configuration for this linkId

accountId

Account Id

webPropertyId

Web Property Id - set to NULL to operate on account level only

viewId

viewId - set to NULL to operate on webProperty level only

Value

The new user object that has been altered.

See Also

Google help article on user permissions

Other User management functions: ga_users_add(), ga_users_delete_linkid(), ga_users_delete(), ga_users_list()

Examples


## Not run: 

library(googleAnalyticsR)
ga_auth()

# the update to perform
o <- list(permissions = list(local = list("EDIT")))

ga_users_update("UA-123456-1:1111222233334444",
                update_object = o,
                accountId = 47480439,
                webPropertyId = "UA-123456-1")
                

## End(Not run)

MarkEdmondson1234/googleAnalyticsR documentation built on Oct. 13, 2023, 4:40 a.m.