From d60b9b2b47bf7b973cba5c8c064a62313860d6dd Mon Sep 17 00:00:00 2001 From: Jay Lee Date: Mon, 17 Aug 2020 12:04:44 -0400 Subject: [PATCH] use new DwD page --- src/gam/__init__.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/gam/__init__.py b/src/gam/__init__.py index aa01ae52..d5afea11 100755 --- a/src/gam/__init__.py +++ b/src/gam/__init__.py @@ -1218,12 +1218,11 @@ def doCheckServiceAccount(users): f'\nAll scopes passed!\nService account {service_account} is fully authorized.' ) continue - user_domain = user[user.find('@') + 1:] # Tack on email scope for more accurate checking check_scopes.append(USERINFO_EMAIL_SCOPE) - long_url = (f'https://admin.google.com/{user_domain}/ManageOauthClients' + long_url = ('https://admin.google.com/ac/owl/domainwidedelegation' f'?clientScopeToAdd={",".join(check_scopes)}' - f'&clientNameToAdd={service_account}') + f'&clientIdToAdd={service_account}') short_url = utils.shorten_url(long_url) scopes_failed = f'''Some scopes failed! To authorize them, please go to: