gam7 7.8.1__py3-none-any.whl → 7.8.2__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of gam7 might be problematic. Click here for more details.

gam/__init__.py CHANGED
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
25
25
  """
26
26
 
27
27
  __author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
28
- __version__ = '7.08.01'
28
+ __version__ = '7.08.02'
29
29
  __license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
30
30
 
31
31
  #pylint: disable=wrong-import-position
@@ -12338,7 +12338,7 @@ def checkServiceAccount(users):
12338
12338
  invalidOauth2serviceJsonExit(f'Authentication{auth_error}')
12339
12339
  _getSvcAcctData() # needed to read in GM.OAUTH2SERVICE_JSON_DATA
12340
12340
  if GM.Globals[GM.SVCACCT_SCOPES_DEFINED] and API.IAM not in GM.Globals[GM.SVCACCT_SCOPES]:
12341
- GM.Globals[GM.SVCACCT_SCOPES][API.IAM] = [API.CLOUD_PLATFORM_SCOPE]
12341
+ GM.Globals[GM.SVCACCT_SCOPES][API.IAM] = [API.IAM_SCOPE]
12342
12342
  key_type = GM.Globals[GM.OAUTH2SERVICE_JSON_DATA].get('key_type', 'default')
12343
12343
  if key_type == 'default':
12344
12344
  printMessage(Msg.SERVICE_ACCOUNT_CHECK_PRIVATE_KEY_AGE)
@@ -66071,8 +66071,8 @@ def printSharedDriveOrganizers(users, useDomainAdminAccess=False):
66071
66071
  showNoOrganizerDrives = SHOW_NO_PERMISSIONS_DRIVES_CHOICE_MAP['false']
66072
66072
  fieldsList = ['role', 'type', 'emailAddress']
66073
66073
  cd = entityList = orgUnitId = query = matchPattern = None
66074
- domainList = []
66075
- oneOrganizer = False
66074
+ domainList = [GC.Values[GC.DOMAIN]]
66075
+ oneOrganizer = True
66076
66076
  while Cmd.ArgumentsRemaining():
66077
66077
  myarg = getArgument()
66078
66078
  if csvPF and myarg == 'todrive':
@@ -66104,7 +66104,7 @@ def printSharedDriveOrganizers(users, useDomainAdminAccess=False):
66104
66104
  elif myarg in ADMIN_ACCESS_OPTIONS:
66105
66105
  useDomainAdminAccess = True
66106
66106
  elif myarg == 'domainlist':
66107
- domainList = set(getString(Cmd.OB_DOMAIN_NAME_LIST).replace(',', ' ').lower().split())
66107
+ domainList = set(getString(Cmd.OB_DOMAIN_NAME_LIST, minLen=0).replace(',', ' ').lower().split())
66108
66108
  elif myarg == 'includetypes':
66109
66109
  for itype in getString(Cmd.OB_ORGANIZER_TYPE_LIST).lower().replace(',', ' ').split():
66110
66110
  if itype in PRINT_ORGANIZER_TYPES:
@@ -66133,7 +66133,7 @@ def printSharedDriveOrganizers(users, useDomainAdminAccess=False):
66133
66133
  usageErrorExit(Msg.ONLY_ADMINISTRATORS_CAN_SPECIFY_SHARED_DRIVE_ORGUNIT)
66134
66134
  csvPF.AddTitles(['orgUnit', 'orgUnitId'])
66135
66135
  if not includeTypes:
66136
- includeTypes = PRINT_ORGANIZER_TYPES
66136
+ includeTypes = set(['user'])
66137
66137
  fields = getItemFieldsFromFieldsList('permissions', fieldsList, True)
66138
66138
  i, count, users = getEntityArgument(users)
66139
66139
  for user in users:
gam/gamlib/glapi.py CHANGED
@@ -1,6 +1,6 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
- # Copyright (C) 2024 Ross Scroggs All Rights Reserved.
3
+ # Copyright (C) 2025 Ross Scroggs All Rights Reserved.
4
4
  #
5
5
  # All Rights Reserved.
6
6
  #
@@ -596,7 +596,7 @@ _SVCACCT_SCOPES = [
596
596
  {'name': 'Cloud Identity Devices API',
597
597
  'api': CLOUDIDENTITY_DEVICES,
598
598
  'subscopes': READONLY,
599
- 'scope': 'https://www.googleapis.com/auth/cloud-identity'},
599
+ 'scope': 'https://www.googleapis.com/auth/cloud-identity.devices'},
600
600
  # {'name': 'Cloud Identity User Invitations API',
601
601
  # 'api': CLOUDIDENTITY_USERINVITATIONS,
602
602
  # 'subscopes': READONLY,
@@ -647,8 +647,9 @@ _SVCACCT_SCOPES = [
647
647
  'scope': 'https://www.googleapis.com/auth/gmail.settings.sharing'},
648
648
  {'name': 'Identity and Access Management API',
649
649
  'api': IAM,
650
+ 'offByDefault': True,
650
651
  'subscopes': [],
651
- 'scope': CLOUD_PLATFORM_SCOPE},
652
+ 'scope': IAM_SCOPE},
652
653
  {'name': 'Keep API',
653
654
  'api': KEEP,
654
655
  'subscopes': READONLY,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: gam7
3
- Version: 7.8.1
3
+ Version: 7.8.2
4
4
  Summary: CLI tool to manage Google Workspace
5
5
  Project-URL: Homepage, https://github.com/GAM-team/GAM
6
6
  Project-URL: Issues, https://github.com/GAM-team/GAM/issues
@@ -1,4 +1,4 @@
1
- gam/__init__.py,sha256=lAyeM6G9tA4Gb2Lvl865y6ErSDDYtGY_laDZsG--SmE,3513774
1
+ gam/__init__.py,sha256=bWbA30929W_vQxV1tytxhtjfUFGf9rzhVHWqNrUgUh4,3513784
2
2
  gam/__main__.py,sha256=amz0-959ph6zkZKqjaar4n60yho-T37w6qWI36qx0CA,1049
3
3
  gam/cacerts.pem,sha256=82Ak7btW_2XvocLUvAwPmpx8Chi0oqtZUG1gseLK_t4,50235
4
4
  gam/cbcm-v1.1beta1.json,sha256=xO5XloCQQULmPbFBx5bckdqmbLFQ7sJ2TImhE1ysDIY,19439
@@ -23,7 +23,7 @@ gam/atom/token_store.py,sha256=7E6Ecvxa86WCvl1pJAhv78jg9OxQv8pMtIUcPhZCq04,3803
23
23
  gam/atom/url.py,sha256=pxO1TlORxyKQTQ1bkBE1unFzjnv9c8LjJkm-UEORShY,4276
24
24
  gam/gamlib/__init__.py,sha256=z5mF-y0j8pm-YNFBaiuxB4M_GAUPG-cXWwrhYwrVReM,679
25
25
  gam/gamlib/glaction.py,sha256=1Il_HrChVnPkzZwiZs5au4mFQVtq4K1Z42uIuR6qdnI,9419
26
- gam/gamlib/glapi.py,sha256=85YwZ5LhBoVd9kU3m-gwLRq8FwTWCaRIwARuQvH8Mjc,34022
26
+ gam/gamlib/glapi.py,sha256=1P5QD850Fza_huThuNzgUAuDinLHujY8EdqzXRs_De4,34044
27
27
  gam/gamlib/glcfg.py,sha256=eJCVb_OJ6cIsPuv-0IfIjHaTh5lM9juh4HOMLDblJmE,28055
28
28
  gam/gamlib/glclargs.py,sha256=zB6GMmDR_y5IRj7LuoM6-Bk_ETfNQ6sTqCNB6RdPfyg,42350
29
29
  gam/gamlib/glentity.py,sha256=fqWUlxQqPKlfFrkuPjCK2lZhhFBIZboCuO0qCxuEwqA,33691
@@ -65,8 +65,8 @@ gam/googleapiclient/discovery_cache/base.py,sha256=yCDPtxnbNN-p5_9fzBacC6P3wcUPl
65
65
  gam/googleapiclient/discovery_cache/file_cache.py,sha256=sim3Mg4HgRYo3vX75jvcKy_aV568EvIrtBfvfbw-044,4774
66
66
  gam/iso8601/__init__.py,sha256=Z2PsYbXgAH5a5xzUvgczCboPzqWpm65kRcIngCnhViU,1218
67
67
  gam/iso8601/iso8601.py,sha256=Li2FHZ4sBTWuthuQhyCvmvj0j6At8JbGzkSv2fc2RHU,4384
68
- gam7-7.8.1.dist-info/METADATA,sha256=hROgYCJUA2X_WKqgJKVV5jwf3q58_oAD8-6nw9gYwiA,2977
69
- gam7-7.8.1.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
- gam7-7.8.1.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
- gam7-7.8.1.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
- gam7-7.8.1.dist-info/RECORD,,
68
+ gam7-7.8.2.dist-info/METADATA,sha256=_MUs7ktcgVLE5GmS8U4Uc7xSu_IAn5cKMQ7Zqutn_Lg,2977
69
+ gam7-7.8.2.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
70
+ gam7-7.8.2.dist-info/entry_points.txt,sha256=HVUM5J7dA8YwvJfG30jiLefR19ExMs387TWugWd9sf4,42
71
+ gam7-7.8.2.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
72
+ gam7-7.8.2.dist-info/RECORD,,
File without changes