View source: R/gtm_permissions_methods.R
Update the user permissions in a GTM account.
1 2 3 4 5 6 7 8 9 | gtm_permissions_update(
account_id,
email,
permission_id,
account_permission,
container_permissions,
token,
verbose = FALSE
)
|
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. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.