0

I'm trying to use Google API to invite managers to my business profile account My role is "OWNER" and I try to invite someone by email I used OAuth playground tool to achieve that.

scope: https://www.googleapis.com/auth/business.manage method: POST URL: https://mybusinessaccountmanagement.googleapis.com/v1/accounts/108463676430689610134/admins

request body:

{
  "role": "MANAGER",
  "admin": "mina.zakaria.zakher@gmail.com"
}

response body

{
  "error": {
    "status": "PERMISSION_DENIED", 
    "message": "The caller does not have permission", 
    "code": 403
  }
}

I don't know why permission denied while I could add the same email using dashboard? any help?

  • 1
    Can you please verify that the chosen account (=location group) is not actually the PERSONAL account? – vpgcloud Sep 06 '22 at 08:52
  • yes it's a personal account. when listing the accounts { "accounts": [ { "vettedState": "NOT_VETTED", "type": "PERSONAL", "name": "accounts/108463676430689610134", "verificationState": "UNVERIFIED", "accountName": "Mina Zakaria" } ] } couldn't I grant access via API to a personal account? – Mina Zakaria Sep 06 '22 at 11:07
  • Please specify how and where you "could add the same email using dashboard", this is not supported for personal accounts. – vpgcloud Sep 06 '22 at 15:57

1 Answers1

1

Inviting others as admins is only supported for accounts that are not of AccountType PERSONAL.

Personal account:

Personal account

Location group account (where a user could invite others via the group settings capability):

Location group account

vpgcloud
  • 1,294
  • 2
  • 10
  • 19