From aa04e3ec1d2b6b51b0191b1fc54298d7f01fce8f Mon Sep 17 00:00:00 2001 From: Ross Scroggs Date: Mon, 11 Jan 2016 08:35:01 -0800 Subject: [PATCH] Fix select_default_scopes in doRequestOAuth https://www.googleapis.com/auth/admin.directory.user.security is not a subset of https://www.googleapis.com/auth/admin.directory.user --- src/gam.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/gam.py b/src/gam.py index ecffe2df..4ffe8e1f 100755 --- a/src/gam.py +++ b/src/gam.py @@ -8824,6 +8824,8 @@ def doRequestOAuth(): i += 1 scope += u'.' while (i < count) and scopes[i].startswith(scope): + if scopes[i].endswith(u'.security'): + api[u'use_scopes'].append(scopes[i]) i += 1 def _getSelection(limit):