taers232c / GAMADV-XTD3

Command line tool to manage Google Workspace
714 stars 87 forks source link

add and delete contactdelegate #250

Closed mcipriani-de closed 2 years ago

mcipriani-de commented 2 years ago

Hi, I'm trying to add a contact delegate and it returns an error.

gam user _usera@example.com add contactdelegate user_b@example.com User: _usera@example.com, Add 1 Delegate User: _usera@example.com, Contact Delegate: _userb@example.com, Add Failed: Request contains an invalid argument.

taers232c commented 2 years ago

Send me a Meet/Zoom invitation.

ross.scroggs @ gmail.com

GustavJer commented 2 years ago

Hi,

I have the same issue so I would really appreciate if you could report back to me if you find a solution for this!

Gustav

taers232c commented 2 years ago

Gustav,

Send me a Meet/Zoom invitation and we'll investigate.

Ross

@.***

On Apr 26, 2022, at 10:44 PM, GustavJer @.***> wrote:

Hi,

I have the same issue so I would really appreciate if you could report back to me if you find a solution for this!

Gustav

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/250#issuecomment-1110567770, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYLYXASMTB3RSKAN7U43VHDH23ANCNFSM5QGR7A2A. You are receiving this because you commented.

taers232c commented 2 years ago

Send me a Meet/Zoom invitation and we'll investigate.

Ross

@.***

On Mar 8, 2022, at 6:48 AM, mcipriani-de @.***> wrote:

Hi, I'm trying to add a contact delegate and it returns an error.

gam user @. @.> add contactdelegate @. @.> User: @. @.>, Add 1 Delegate User: @. @.>, Contact Delegate: @. @.>, Add Failed: Request contains an invalid argument.

— Reply to this email directly, view it on GitHub https://github.com/taers232c/GAMADV-XTD3/issues/250, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACCTYL6IWMOL2ZABU4U44NDU65SDJANCNFSM5QGR7A2A. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you are subscribed to this thread.

taers232c commented 2 years ago

contact delegation needs a separate oauth2.txt file that specifies a super user in your primary domain and each of your sub-domains. Currently (2022-05-02) everything works in the primary domain but only add|delete work in the sub-domain; print|show fail with an internal server error.

See: https://github.com/taers232c/GAMADV-XTD3/wiki/gam.cfg#multiple-customers-and-domains

There is no cross-domain delegation.

GustavJer commented 2 years ago

Thanks Ross, works exacly as you described it :)

NoSubstitute commented 2 years ago

@taers232c - this must be an issue with the API only, because cross-domain Contacts delegation, within the same Workspace account, of course, works fine, if done via the Contacts interface.

@mcipriani-de & @GustavJer - as you may be aware, Gmail delegation also delegates Contacts, and works great cross-domain.