stefandoorn / google-tag-manager-plugin

Google Tag Manager plugin for Sylius eCommerce Platform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

"Invitation pending" on User Permissions: create with JavaScript

konradstrek opened this issue · comments

I'm using user_permissions.create to add new admin to the Google Tag Manager account. The problem is that even If we have "permission": "admin" in code, we still have yellow Invitation pending badge. How to make it directly green (Has access)?

Note: User making create request allowed our app to make this request.

ice_screenshot_20191106-134400

return gapi.client.tagmanager.accounts.user_permissions.create({
  "parent": "accounts/0123456789",
  "resource": {
    "path": "accounts/1111111111",
    "accountId": "1111111111",
    "emailAddress": "myemail@gmail.com",
    "accountAccess": {
      "permission": "admin"
    },
    "containerAccess": [
      {
        "containerId": "123456789",
        "permission": "edit"
      }
    ]
  }
})
.then(function(response) {
  console.log("Response", response);
},
function(err) {
  console.error("Execute error", err);
});

Hi @konradstrek, thanks but I think this is not an issue related to this plugin. This plugin aims to inject the GTM browser code into the Sylius webshop front-end, and it doesn't do anything with GTM user management.. Maybe you've submitted it to the wrong repo?