gtm_permissions_update: gtm_permissions_update

Description Usage Arguments

View source: R/gtm_permissions_methods.R

Description

Update the user permissions in a GTM account.

Usage

1
2
3
4
5
6
7
8
9
gtm_permissions_update(
  account_id,
  email,
  permission_id,
  account_permission,
  container_permissions,
  token,
  verbose = FALSE
)

Arguments

account_id

The ID of the account

email

The email of the user

account_permission

The account level permissions for the user; possible values are "accountPermissionUnspecified", "admin", "noAccess", and "user"

container_permissions

A data frame of the permissions per container, with the container ID in the first column and the permission in the second column. Possible permissions are "approve", "containerPermissionUnspecified", "edit", "noAccess", "publish", and "read"

token

An OAuth token object - needs to be set to 'manage users'

verbose

If you want a message letting you know that your results have been successfully retrieved. Defaults to FALSE

user_permission_id

The ID of the user permission. Note: if you leave this NULL then the call will use the email address to find the permission ID.


neugelb/gtmr documentation built on June 25, 2020, 10:06 a.m.