mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-04 04:41:35 +00:00
Compare commits
11 Commits
v7.07.15
...
20250601.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
3006d8dfe4 | ||
|
|
f9ed16e2e3 | ||
|
|
9999adfb3a | ||
|
|
f09a1e1bd6 | ||
|
|
a95da4e2ea | ||
|
|
fce8704f87 | ||
|
|
4d3b72900b | ||
|
|
fd81d56675 | ||
|
|
762d8479a4 | ||
|
|
6f19ec4f8c | ||
|
|
8af3bc60e6 |
@@ -1383,7 +1383,7 @@ gam show projects [[admin] <EmailAddress>] [all|<ProjectIDEntity>]
|
|||||||
[states all|active|deleterequested] [showiampolicies 0|1|3]
|
[states all|active|deleterequested] [showiampolicies 0|1|3]
|
||||||
gam print projects [[admin] <EmailAddress>] [all|<ProjectIDEntity>] [todrive <ToDriveAttribute>*]
|
gam print projects [[admin] <EmailAddress>] [all|<ProjectIDEntity>] [todrive <ToDriveAttribute>*]
|
||||||
[states all|active|deleterequested] [showiampolicies 0|1|3 [onememberperrow]]
|
[states all|active|deleterequested] [showiampolicies 0|1|3 [onememberperrow]]
|
||||||
[delimiter <Character>]] [[formatjson [quotechar <Character>]]
|
[delimiter <Character>] [[formatjson [quotechar <Character>]]
|
||||||
gam info currentprojectid
|
gam info currentprojectid
|
||||||
|
|
||||||
gam create|add svcacct [[admin] <EmailAddress>] [<ProjectIDEntity>]
|
gam create|add svcacct [[admin] <EmailAddress>] [<ProjectIDEntity>]
|
||||||
@@ -2396,12 +2396,14 @@ gam <CrOSTypeEntity> update <CrOSAttribute>+ [quickcrosmove [<Boolean>]] [nobatc
|
|||||||
autoupdatethrough|
|
autoupdatethrough|
|
||||||
backlightinfo|
|
backlightinfo|
|
||||||
bootmode|
|
bootmode|
|
||||||
|
chromeostype|
|
||||||
cpuinfo|
|
cpuinfo|
|
||||||
cpustatusreports|
|
cpustatusreports|
|
||||||
deprovisionreason|
|
deprovisionreason|
|
||||||
devicefiles|
|
devicefiles|
|
||||||
deviceid|
|
deviceid|
|
||||||
devicelicensetype|
|
devicelicensetype|
|
||||||
|
diskspaceusage|
|
||||||
diskvolumereports|
|
diskvolumereports|
|
||||||
dockmacaddress|
|
dockmacaddress|
|
||||||
ethernetmacaddress|
|
ethernetmacaddress|
|
||||||
@@ -2409,6 +2411,7 @@ gam <CrOSTypeEntity> update <CrOSAttribute>+ [quickcrosmove [<Boolean>]] [nobatc
|
|||||||
extendedsupporteligible|
|
extendedsupporteligible|
|
||||||
extendedsupportstart|
|
extendedsupportstart|
|
||||||
extendedsupportenabled|
|
extendedsupportenabled|
|
||||||
|
faninfo|
|
||||||
firmwareversion|
|
firmwareversion|
|
||||||
firstenrollmenttime|
|
firstenrollmenttime|
|
||||||
lastdeprovisiontimestamp|
|
lastdeprovisiontimestamp|
|
||||||
@@ -4116,7 +4119,7 @@ gam print devices [todrive <ToDriveAttribute>*]
|
|||||||
<DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
<DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
||||||
[orderby <DeviceOrderByFieldName> [ascending|descending]]
|
[orderby <DeviceOrderByFieldName> [ascending|descending]]
|
||||||
[all|company|personal|nocompanydevices|nopersonaldevices]
|
[all|company|personal|nocompanydevices|nopersonaldevices]
|
||||||
[nodeviceusers]
|
[nodeviceusers|oneuserperrow]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
[showitemcountonly]
|
[showitemcountonly]
|
||||||
|
|
||||||
@@ -4816,6 +4819,16 @@ gam show shareddrives
|
|||||||
[fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
[fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
||||||
[formatjson] [noorgunits [<Boolean>]]
|
[formatjson] [noorgunits [<Boolean>]]
|
||||||
|
|
||||||
|
gam print shareddriveorganizers [todrive <ToDriveAttribute>*]
|
||||||
|
[shareddriveadminquery|query <QuerySharedDrive>]
|
||||||
|
[orgunit|org|ou <OrgUnitPath>]
|
||||||
|
[matchname <REMatchPattern>]
|
||||||
|
[domainlist <DomainList>]
|
||||||
|
[includetypes <OrganizerTypeList>]
|
||||||
|
[oneorganizer [<Boolean>]]
|
||||||
|
[shownorganizerdrives [false|true|only]]
|
||||||
|
[includefileorganizers [<Boolean>]]
|
||||||
|
[delimiter <Character>]
|
||||||
gam print oushareddrives [todrive <ToDriveAttribute>*]
|
gam print oushareddrives [todrive <ToDriveAttribute>*]
|
||||||
[ou|org|orgunit <OrgUnitPath>]
|
[ou|org|orgunit <OrgUnitPath>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
@@ -8323,6 +8336,17 @@ gam <UserTypeEntity> show shareddrives
|
|||||||
[fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
[fields <SharedDriveFieldNameList>] [noorgunits [<Boolean>]]
|
||||||
[formatjson]
|
[formatjson]
|
||||||
|
|
||||||
|
gam <UserTypeEntity> print shareddriveorganizers [todrive <ToDriveAttribute>*]
|
||||||
|
[adminaccess|asadmin] [shareddriveadminquery|query <QuerySharedDrive>]
|
||||||
|
[orgunit|org|ou <OrgUnitPath>]
|
||||||
|
[matchname <REMatchPattern>]
|
||||||
|
[domainlist <DomainList>]
|
||||||
|
[includetypes <OrganizerTypeList>]
|
||||||
|
[oneorganizer [<Boolean>]]
|
||||||
|
[shownorganizerdrives [false|true|only]]
|
||||||
|
[includefileorganizers [<Boolean>]]
|
||||||
|
[delimiter <Character>]
|
||||||
|
|
||||||
# Users - Force Signout and Turn Off 2-Step Verification
|
# Users - Force Signout and Turn Off 2-Step Verification
|
||||||
|
|
||||||
gam <UserTypeEntity> signout
|
gam <UserTypeEntity> signout
|
||||||
|
|||||||
@@ -1,8 +1,47 @@
|
|||||||
|
7.08.00
|
||||||
|
|
||||||
|
Added the following command that can be used instead of the `GetTeamDriveOrganizers.py` script.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam [<UserTypeEntity>] print shareddriveorganizers [todrive <ToDriveAttribute>*]
|
||||||
|
[adminaccess|asadmin] [shareddriveadminquery|query <QuerySharedDrive>]
|
||||||
|
[orgunit|org|ou <OrgUnitPath>]
|
||||||
|
[matchname <REMatchPattern>]
|
||||||
|
[domainlist <DomainList>]
|
||||||
|
[includetypes <OrganizerTypeList>]
|
||||||
|
[oneorganizer [<Boolean>]]
|
||||||
|
[shownorganizerdrives [false|true|only]]
|
||||||
|
[includefileorganizers [<Boolean>]]
|
||||||
|
[delimiter <Character>]
|
||||||
|
```
|
||||||
|
The command defaults match the script defaults:
|
||||||
|
* `domainlist` - All domains
|
||||||
|
* `includetypes` - user,groups
|
||||||
|
* `oneorganizer` - False
|
||||||
|
* `shownoorganizerdrives` - True
|
||||||
|
* `includefileorganizers` - False
|
||||||
|
|
||||||
|
For example, to get a single organizer from your domain for all Shared Drives including no organizer drives:
|
||||||
|
```
|
||||||
|
gam redirect csv ./TeamDriveOrganizers.csv print shareddriveorganizers domainlist mydomain.com includetypes user oneorganizer shownoorganizerdrives
|
||||||
|
```
|
||||||
|
|
||||||
|
7.07.17
|
||||||
|
|
||||||
|
Added option `oneuserperrow` to `gam print devices` to have each of a
|
||||||
|
device's users displayed on a separate row with all of the other device fields.
|
||||||
|
|
||||||
|
7.07.16
|
||||||
|
|
||||||
|
Added `chromeostype`, `diskspaceusage` and `faninfo` to `<CrOSFieldName>` for use in `gam info|print cros`.
|
||||||
|
|
||||||
|
Fixed bugs/cleaned output in `gam info|print cros`.
|
||||||
|
|
||||||
7.07.15
|
7.07.15
|
||||||
|
|
||||||
Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`.
|
Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`.
|
||||||
|
|
||||||
The previous option 'includeshareddrives <Boolean>` is mapped as follows:
|
The previous option `includeshareddrives <Boolean>` is mapped as follows:
|
||||||
* `includeshareddrives false` - `shareddrivesoption included_if_account_is_not_a_member`
|
* `includeshareddrives false` - `shareddrivesoption included_if_account_is_not_a_member`
|
||||||
* `includeshareddrives true` - `shareddrivesoption included`
|
* `includeshareddrives true` - `shareddrivesoption included`
|
||||||
|
|
||||||
|
|||||||
@@ -25,7 +25,7 @@ https://github.com/GAM-team/GAM/wiki
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
__author__ = 'GAM Team <google-apps-manager@googlegroups.com>'
|
||||||
__version__ = '7.07.15'
|
__version__ = '7.08.00'
|
||||||
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
__license__ = 'Apache License 2.0 (http://www.apache.org/licenses/LICENSE-2.0)'
|
||||||
|
|
||||||
#pylint: disable=wrong-import-position
|
#pylint: disable=wrong-import-position
|
||||||
@@ -17102,11 +17102,11 @@ DATA_TRANSFER_SORT_TITLES = ['id', 'requestTime', 'oldOwnerUserEmail', 'newOwner
|
|||||||
|
|
||||||
# gam print datatransfers|transfers [todrive <ToDriveAttribute>*]
|
# gam print datatransfers|transfers [todrive <ToDriveAttribute>*]
|
||||||
# [olduser|oldowner <UserItem>] [newuser|newowner <UserItem>]
|
# [olduser|oldowner <UserItem>] [newuser|newowner <UserItem>]
|
||||||
# [status <String>] [delimiter <Character>]]
|
# [status <String>] [delimiter <Character>]
|
||||||
# (addcsvdata <FieldName> <String>)*
|
# (addcsvdata <FieldName> <String>)*
|
||||||
# gam show datatransfers|transfers
|
# gam show datatransfers|transfers
|
||||||
# [olduser|oldowner <UserItem>] [newuser|newowner <UserItem>]
|
# [olduser|oldowner <UserItem>] [newuser|newowner <UserItem>]
|
||||||
# [status <String>] [delimiter <Character>]]
|
# [status <String>] [delimiter <Character>]
|
||||||
def doPrintShowDataTransfers():
|
def doPrintShowDataTransfers():
|
||||||
dt = buildGAPIObject(API.DATATRANSFER)
|
dt = buildGAPIObject(API.DATATRANSFER)
|
||||||
apps = getTransferApplications(dt)
|
apps = getTransferApplications(dt)
|
||||||
@@ -23759,12 +23759,14 @@ CROS_FIELDS_CHOICE_MAP = {
|
|||||||
'autoupdatethrough': 'autoUpdateThrough',
|
'autoupdatethrough': 'autoUpdateThrough',
|
||||||
'backlightinfo': 'backlightInfo',
|
'backlightinfo': 'backlightInfo',
|
||||||
'bootmode': 'bootMode',
|
'bootmode': 'bootMode',
|
||||||
|
'chromeostype': 'chromeOsType',
|
||||||
'cpuinfo': 'cpuInfo',
|
'cpuinfo': 'cpuInfo',
|
||||||
'cpustatusreports': 'cpuStatusReports',
|
'cpustatusreports': 'cpuStatusReports',
|
||||||
'deprovisionreason': 'deprovisionReason',
|
'deprovisionreason': 'deprovisionReason',
|
||||||
'devicefiles': ['deviceFiles.type', 'deviceFiles.createTime'],
|
'devicefiles': ['deviceFiles.type', 'deviceFiles.createTime'],
|
||||||
'deviceid': 'deviceId',
|
'deviceid': 'deviceId',
|
||||||
'devicelicensetype': 'deviceLicenseType',
|
'devicelicensetype': 'deviceLicenseType',
|
||||||
|
'diskspaceusage': 'diskSpaceUsage',
|
||||||
'diskvolumereports': 'diskVolumeReports',
|
'diskvolumereports': 'diskVolumeReports',
|
||||||
'dockmacaddress': 'dockMacAddress',
|
'dockmacaddress': 'dockMacAddress',
|
||||||
'ethernetmacaddress': 'ethernetMacAddress',
|
'ethernetmacaddress': 'ethernetMacAddress',
|
||||||
@@ -23772,6 +23774,7 @@ CROS_FIELDS_CHOICE_MAP = {
|
|||||||
'extendedsupporteligible': 'extendedSupportEligible',
|
'extendedsupporteligible': 'extendedSupportEligible',
|
||||||
'extendedsupportstart': 'extendedSupportStart',
|
'extendedsupportstart': 'extendedSupportStart',
|
||||||
'extendedsupportenabled': 'extendedSupportEnabled',
|
'extendedsupportenabled': 'extendedSupportEnabled',
|
||||||
|
'faninfo': 'fanInfo',
|
||||||
'firmwareversion': 'firmwareVersion',
|
'firmwareversion': 'firmwareVersion',
|
||||||
'firstenrollmenttime': 'firstEnrollmentTime',
|
'firstenrollmenttime': 'firstEnrollmentTime',
|
||||||
'lastdeprovisiontimestamp': 'lastDeprovisionTimestamp',
|
'lastdeprovisiontimestamp': 'lastDeprovisionTimestamp',
|
||||||
@@ -23819,6 +23822,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [
|
|||||||
'notes',
|
'notes',
|
||||||
'serialNumber',
|
'serialNumber',
|
||||||
'status',
|
'status',
|
||||||
|
'chromeOsType',
|
||||||
'deviceLicenseType',
|
'deviceLicenseType',
|
||||||
'model',
|
'model',
|
||||||
'firmwareVersion',
|
'firmwareVersion',
|
||||||
@@ -23839,6 +23843,7 @@ CROS_SCALAR_PROPERTY_PRINT_ORDER = [
|
|||||||
'manufactureDate',
|
'manufactureDate',
|
||||||
'supportEndDate',
|
'supportEndDate',
|
||||||
'autoUpdateExpiration',
|
'autoUpdateExpiration',
|
||||||
|
'autoUpdateThrough',
|
||||||
'willAutoRenew',
|
'willAutoRenew',
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -23863,8 +23868,11 @@ CROS_TIME_OBJECTS = {
|
|||||||
'lastDeprovisionTimestamp',
|
'lastDeprovisionTimestamp',
|
||||||
'lastEnrollmentTime',
|
'lastEnrollmentTime',
|
||||||
'lastSync',
|
'lastSync',
|
||||||
|
'rebootTime',
|
||||||
'reportTime',
|
'reportTime',
|
||||||
'supportEndDate',
|
'supportEndDate',
|
||||||
|
'updateTime',
|
||||||
|
'updateCheckTime',
|
||||||
}
|
}
|
||||||
CROS_FIELDS_WITH_CRS_NLS = {'notes'}
|
CROS_FIELDS_WITH_CRS_NLS = {'notes'}
|
||||||
CROS_START_ARGUMENTS = ['start', 'startdate', 'oldestdate']
|
CROS_START_ARGUMENTS = ['start', 'startdate', 'oldestdate']
|
||||||
@@ -23981,13 +23989,13 @@ def infoCrOSDevices(entityList):
|
|||||||
printKeyValueWithCRsNLs(up, cros[up])
|
printKeyValueWithCRsNLs(up, cros[up])
|
||||||
else:
|
else:
|
||||||
printKeyValueList([up, formatLocalTime(cros[up])])
|
printKeyValueList([up, formatLocalTime(cros[up])])
|
||||||
up = 'tpmVersionInfo'
|
for up in ['diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo']:
|
||||||
if up in cros:
|
if up in cros:
|
||||||
printKeyValueList([up, ''])
|
printKeyValueList([up, ''])
|
||||||
Ind.Increment()
|
Ind.Increment()
|
||||||
for key, value in sorted(iter(cros[up].items())):
|
for key, value in sorted(iter(cros[up].items())):
|
||||||
printKeyValueList([key, value])
|
printKeyValueList([key, value])
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
if not noLists:
|
if not noLists:
|
||||||
activeTimeRanges = _filterActiveTimeRanges(cros, True, listLimit, startDate, endDate, activeTimeRangesOrder)
|
activeTimeRanges = _filterActiveTimeRanges(cros, True, listLimit, startDate, endDate, activeTimeRangesOrder)
|
||||||
if activeTimeRanges:
|
if activeTimeRanges:
|
||||||
@@ -24041,6 +24049,9 @@ def infoCrOSDevices(entityList):
|
|||||||
entityActionNotPerformedWarning([Ent.CROS_DEVICE, deviceId, Ent.DEVICE_FILE, downloadfile],
|
entityActionNotPerformedWarning([Ent.CROS_DEVICE, deviceId, Ent.DEVICE_FILE, downloadfile],
|
||||||
Msg.NO_ENTITIES_FOUND.format(Ent.Plural(Ent.DEVICE_FILE)), i, count)
|
Msg.NO_ENTITIES_FOUND.format(Ent.Plural(Ent.DEVICE_FILE)), i, count)
|
||||||
Act.Set(Act.INFO)
|
Act.Set(Act.INFO)
|
||||||
|
cpuInfo = _filterBasicList(cros, 'cpuInfo', True, listLimit)
|
||||||
|
if cpuInfo:
|
||||||
|
showJSON('cpuInfo', cpuInfo, dictObjectsKey={'cpuInfo': 'model'})
|
||||||
cpuStatusReports = _filterCPUStatusReports(cros, True, listLimit, startTime, endTime)
|
cpuStatusReports = _filterCPUStatusReports(cros, True, listLimit, startTime, endTime)
|
||||||
if cpuStatusReports:
|
if cpuStatusReports:
|
||||||
printKeyValueList(['cpuStatusReports'])
|
printKeyValueList(['cpuStatusReports'])
|
||||||
@@ -24058,6 +24069,12 @@ def infoCrOSDevices(entityList):
|
|||||||
printKeyValueList(['cpuUtilizationPercentageInfo', cpuStatusReport['cpuUtilizationPercentageInfo']])
|
printKeyValueList(['cpuUtilizationPercentageInfo', cpuStatusReport['cpuUtilizationPercentageInfo']])
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
backlightInfo = _filterBasicList(cros, 'backLightInfo', True, listLimit)
|
||||||
|
if backlightInfo:
|
||||||
|
showJSON('backlightInfo', backlightInfo, dictObjectsKey={'backlightInfo': 'path'})
|
||||||
|
fanInfo = _filterBasicList(cros, 'fanInfo', True, listLimit)
|
||||||
|
if fanInfo:
|
||||||
|
showJSON('fanInfo', fanInfo)
|
||||||
diskVolumeReports = _filterBasicList(cros, 'diskVolumeReports', True, listLimit)
|
diskVolumeReports = _filterBasicList(cros, 'diskVolumeReports', True, listLimit)
|
||||||
if diskVolumeReports:
|
if diskVolumeReports:
|
||||||
printKeyValueList(['diskVolumeReports'])
|
printKeyValueList(['diskVolumeReports'])
|
||||||
@@ -24284,7 +24301,7 @@ CROS_ENTITIES_MAP = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
CROS_INDEXED_TITLES = ['activeTimeRanges', 'recentUsers', 'deviceFiles',
|
CROS_INDEXED_TITLES = ['activeTimeRanges', 'recentUsers', 'deviceFiles',
|
||||||
'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports']
|
'cpuStatusReports', 'cpuInfo', 'backlightInfo', 'fanInfo', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports']
|
||||||
|
|
||||||
# gam print cros [todrive <ToDriveAttribute>*]
|
# gam print cros [todrive <ToDriveAttribute>*]
|
||||||
# [(query <QueryCrOS>)|(queries <QueryCrOSList>) [querytime<String> <Time>]
|
# [(query <QueryCrOS>)|(queries <QueryCrOSList>) [querytime<String> <Time>]
|
||||||
@@ -24331,12 +24348,15 @@ def doPrintCrOSDevices(entityList=None):
|
|||||||
if not noLists and not selectedLists:
|
if not noLists and not selectedLists:
|
||||||
csvPF.WriteRowTitles(flattenJSON(cros, listLimit=listLimit, timeObjects=CROS_TIME_OBJECTS))
|
csvPF.WriteRowTitles(flattenJSON(cros, listLimit=listLimit, timeObjects=CROS_TIME_OBJECTS))
|
||||||
return
|
return
|
||||||
attrib = 'tpmVersionInfo'
|
for attrib in ['diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo']:
|
||||||
if attrib in cros:
|
if attrib in cros:
|
||||||
for key, value in sorted(iter(cros[attrib].items())):
|
for key, value in sorted(iter(cros[attrib].items())):
|
||||||
attribKey = f'{attrib}{GC.Values[GC.CSV_OUTPUT_SUBFIELD_DELIMITER]}{key}'
|
attribKey = f'{attrib}{GC.Values[GC.CSV_OUTPUT_SUBFIELD_DELIMITER]}{key}'
|
||||||
cros[attribKey] = value
|
if key not in CROS_TIME_OBJECTS:
|
||||||
cros.pop(attrib)
|
cros[attribKey] = value
|
||||||
|
else:
|
||||||
|
cros[attribKey] = formatLocalTime(value)
|
||||||
|
cros.pop(attrib)
|
||||||
activeTimeRanges = _filterActiveTimeRanges(cros, selectedLists.get('activeTimeRanges', False), listLimit, startDate, endDate, activeTimeRangesOrder)
|
activeTimeRanges = _filterActiveTimeRanges(cros, selectedLists.get('activeTimeRanges', False), listLimit, startDate, endDate, activeTimeRangesOrder)
|
||||||
recentUsers = _filterRecentUsers(cros, selectedLists.get('recentUsers', False), listLimit)
|
recentUsers = _filterRecentUsers(cros, selectedLists.get('recentUsers', False), listLimit)
|
||||||
deviceFiles = _filterDeviceFiles(cros, selectedLists.get('deviceFiles', False), listLimit, startTime, endTime)
|
deviceFiles = _filterDeviceFiles(cros, selectedLists.get('deviceFiles', False), listLimit, startTime, endTime)
|
||||||
@@ -24350,8 +24370,10 @@ def doPrintCrOSDevices(entityList=None):
|
|||||||
return
|
return
|
||||||
row = {}
|
row = {}
|
||||||
for attrib in cros:
|
for attrib in cros:
|
||||||
if attrib not in {'kind', 'etag', 'tpmVersionInfo', 'recentUsers', 'activeTimeRanges',
|
if attrib in {'cpuInfo', 'backlightInfo', 'fanInfo'}:
|
||||||
'deviceFiles', 'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'}:
|
flattenJSON({attrib: cros[attrib]}, flattened=row)
|
||||||
|
elif attrib not in {'kind', 'etag', 'diskSpaceUsage', 'osUpdateStatus', 'tpmVersionInfo', 'activeTimeRanges', 'recentUsers',
|
||||||
|
'deviceFiles', 'cpuStatusReports', 'diskVolumeReports', 'lastKnownNetwork', 'screenshotFiles', 'systemRamFreeReports'}:
|
||||||
if attrib not in CROS_TIME_OBJECTS:
|
if attrib not in CROS_TIME_OBJECTS:
|
||||||
row[attrib] = cros[attrib]
|
row[attrib] = cros[attrib]
|
||||||
else:
|
else:
|
||||||
@@ -29565,7 +29587,7 @@ DEVICE_ORDERBY_CHOICE_MAP = {
|
|||||||
# <DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
# <DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
||||||
# [orderby <DeviceOrderByFieldName> [ascending|descending]]
|
# [orderby <DeviceOrderByFieldName> [ascending|descending]]
|
||||||
# [all|company|personal|nocompanydevices|nopersonaldevices]
|
# [all|company|personal|nocompanydevices|nopersonaldevices]
|
||||||
# [nodeviceusers]
|
# [nodeviceusers|oneuserperrow]
|
||||||
# [formatjson [quotechar <Character>]]
|
# [formatjson [quotechar <Character>]]
|
||||||
# [showitemcountonly]
|
# [showitemcountonly]
|
||||||
def doPrintCIDevices():
|
def doPrintCIDevices():
|
||||||
@@ -29581,7 +29603,7 @@ def doPrintCIDevices():
|
|||||||
queries = [None]
|
queries = [None]
|
||||||
view, entityType = DEVICE_VIEW_CHOICE_MAP['all']
|
view, entityType = DEVICE_VIEW_CHOICE_MAP['all']
|
||||||
getDeviceUsers = True
|
getDeviceUsers = True
|
||||||
showItemCountOnly = False
|
oneUserPerRow = showItemCountOnly = False
|
||||||
while Cmd.ArgumentsRemaining():
|
while Cmd.ArgumentsRemaining():
|
||||||
myarg = getArgument()
|
myarg = getArgument()
|
||||||
if csvPF and myarg == 'todrive':
|
if csvPF and myarg == 'todrive':
|
||||||
@@ -29596,6 +29618,8 @@ def doPrintCIDevices():
|
|||||||
view, entityType = DEVICE_VIEW_CHOICE_MAP[myarg]
|
view, entityType = DEVICE_VIEW_CHOICE_MAP[myarg]
|
||||||
elif myarg == 'nodeviceusers':
|
elif myarg == 'nodeviceusers':
|
||||||
getDeviceUsers = False
|
getDeviceUsers = False
|
||||||
|
elif myarg in {'oneuserperrow', 'oneitemperrow'}:
|
||||||
|
getDeviceUsers = oneUserPerRow = True
|
||||||
elif getFieldsList(myarg, DEVICE_FIELDS_CHOICE_MAP, fieldsList, initialField='name'):
|
elif getFieldsList(myarg, DEVICE_FIELDS_CHOICE_MAP, fieldsList, initialField='name'):
|
||||||
pass
|
pass
|
||||||
elif getFieldsList(myarg, DEVICEUSER_FIELDS_CHOICE_MAP, userFieldsList, initialField='name', fieldsArg='userfields'):
|
elif getFieldsList(myarg, DEVICEUSER_FIELDS_CHOICE_MAP, userFieldsList, initialField='name', fieldsArg='userfields'):
|
||||||
@@ -29609,6 +29633,8 @@ def doPrintCIDevices():
|
|||||||
fields = getItemFieldsFromFieldsList('devices', fieldsList)
|
fields = getItemFieldsFromFieldsList('devices', fieldsList)
|
||||||
userFields = getItemFieldsFromFieldsList('deviceUsers', userFieldsList)
|
userFields = getItemFieldsFromFieldsList('deviceUsers', userFieldsList)
|
||||||
substituteQueryTimes(queries, queryTimes)
|
substituteQueryTimes(queries, queryTimes)
|
||||||
|
if FJQC.formatJSON and oneUserPerRow:
|
||||||
|
csvPF.SetJSONTitles(['name', 'user.name', 'JSON'])
|
||||||
itemCount = 0
|
itemCount = 0
|
||||||
for query in queries:
|
for query in queries:
|
||||||
printGettingAllAccountEntities(entityType, query)
|
printGettingAllAccountEntities(entityType, query)
|
||||||
@@ -29650,13 +29676,26 @@ def doPrintCIDevices():
|
|||||||
except (GAPI.invalid, GAPI.invalidArgument, GAPI.permissionDenied) as e:
|
except (GAPI.invalid, GAPI.invalidArgument, GAPI.permissionDenied) as e:
|
||||||
entityActionFailedWarning([entityType, None], str(e))
|
entityActionFailedWarning([entityType, None], str(e))
|
||||||
for device in devices:
|
for device in devices:
|
||||||
row = flattenJSON(device, timeObjects=DEVICE_TIME_OBJECTS)
|
if not oneUserPerRow or 'users' not in device:
|
||||||
if not FJQC.formatJSON:
|
row = flattenJSON(device, timeObjects=DEVICE_TIME_OBJECTS)
|
||||||
csvPF.WriteRowTitles(row)
|
if not FJQC.formatJSON:
|
||||||
elif csvPF.CheckRowTitles(row):
|
csvPF.WriteRowTitles(row)
|
||||||
csvPF.WriteRowNoFilter({'name': device['name'],
|
elif csvPF.CheckRowTitles(row):
|
||||||
'JSON': json.dumps(cleanJSON(device, timeObjects=DEVICE_TIME_OBJECTS),
|
csvPF.WriteRowNoFilter({'name': device['name'],
|
||||||
ensure_ascii=False, sort_keys=True)})
|
'JSON': json.dumps(cleanJSON(device, timeObjects=DEVICE_TIME_OBJECTS),
|
||||||
|
ensure_ascii=False, sort_keys=True)})
|
||||||
|
else:
|
||||||
|
deviceUsers = device.pop('users')
|
||||||
|
baserow = flattenJSON(device, timeObjects=DEVICE_TIME_OBJECTS)
|
||||||
|
for deviceUser in deviceUsers:
|
||||||
|
row = flattenJSON({'user': deviceUser}, flattened=baserow.copy(), timeObjects=DEVICE_TIME_OBJECTS)
|
||||||
|
if not FJQC.formatJSON:
|
||||||
|
csvPF.WriteRowTitles(row)
|
||||||
|
elif csvPF.CheckRowTitles(row):
|
||||||
|
device['user'] = deviceUser
|
||||||
|
csvPF.WriteRowNoFilter({'name': device['name'], 'user.name': deviceUser['name'],
|
||||||
|
'JSON': json.dumps(cleanJSON(device, timeObjects=DEVICE_TIME_OBJECTS),
|
||||||
|
ensure_ascii=False, sort_keys=True)})
|
||||||
if showItemCountOnly:
|
if showItemCountOnly:
|
||||||
writeStdout(f'{itemCount}\n')
|
writeStdout(f'{itemCount}\n')
|
||||||
return
|
return
|
||||||
@@ -66011,6 +66050,159 @@ def printShowSharedDriveACLs(users, useDomainAdminAccess=False):
|
|||||||
def doPrintShowSharedDriveACLs():
|
def doPrintShowSharedDriveACLs():
|
||||||
printShowSharedDriveACLs([_getAdminEmail()], True)
|
printShowSharedDriveACLs([_getAdminEmail()], True)
|
||||||
|
|
||||||
|
PRINT_ORGANIZER_TYPES = {'group', 'user'}
|
||||||
|
|
||||||
|
# gam [<UserTypeEntity>] print shareddriveorganizers [todrive <ToDriveAttribute>*]
|
||||||
|
# [adminaccess|asadmin] [shareddriveadminquery|query <QuerySharedDrive>]
|
||||||
|
# [matchname <REMatchPattern>] [orgunit|org|ou <OrgUnitPath>]
|
||||||
|
# [domainlist <DomainList>]
|
||||||
|
# [includetypes user|group]
|
||||||
|
# [oneorganizer [<Boolean>]]
|
||||||
|
# [shownorganizerdrives false|true|only]
|
||||||
|
# [includefileorganizers [<Boolean>]]
|
||||||
|
# [delimiter <Character>]
|
||||||
|
def printSharedDriveOrganizers(users, useDomainAdminAccess=False):
|
||||||
|
csvPF = CSVPrintFile(['id', 'name', 'organizers', 'createdTime'], 'sortall')
|
||||||
|
delimiter = GC.Values[GC.CSV_OUTPUT_FIELD_DELIMITER]
|
||||||
|
roles = set(['organizer'])
|
||||||
|
includeTypes = set()
|
||||||
|
showNoOrganizerDrives = SHOW_NO_PERMISSIONS_DRIVES_CHOICE_MAP['false']
|
||||||
|
fieldsList = ['role', 'type', 'emailAddress']
|
||||||
|
cd = orgUnitId = query = matchPattern = None
|
||||||
|
domainList = []
|
||||||
|
oneOrganizer = False
|
||||||
|
while Cmd.ArgumentsRemaining():
|
||||||
|
myarg = getArgument()
|
||||||
|
if csvPF and myarg == 'todrive':
|
||||||
|
csvPF.GetTodriveParameters()
|
||||||
|
elif myarg == 'delimiter':
|
||||||
|
delimiter = getCharacter()
|
||||||
|
elif myarg in {'teamdriveadminquery', 'shareddriveadminquery', 'query'}:
|
||||||
|
queryLocation = Cmd.Location()
|
||||||
|
query = getString(Cmd.OB_QUERY, minLen=0) or None
|
||||||
|
if query:
|
||||||
|
query = mapQueryRelativeTimes(query, ['createdTime'])
|
||||||
|
elif myarg == 'matchname':
|
||||||
|
matchPattern = getREPattern(re.IGNORECASE)
|
||||||
|
elif myarg in {'ou', 'org', 'orgunit'}:
|
||||||
|
orgLocation = Cmd.Location()
|
||||||
|
if cd is None:
|
||||||
|
cd = buildGAPIObject(API.DIRECTORY)
|
||||||
|
orgUnitPath, orgUnitId = getOrgUnitId(cd)
|
||||||
|
orgUnitId = orgUnitId[3:]
|
||||||
|
orgUnitInfo = {'orgUnit': orgUnitPath, 'orgUnitId': orgUnitId}
|
||||||
|
elif myarg in ADMIN_ACCESS_OPTIONS:
|
||||||
|
useDomainAdminAccess = True
|
||||||
|
elif myarg == 'domainlist':
|
||||||
|
domainList = set(getString(Cmd.OB_DOMAIN_NAME_LIST).replace(',', ' ').lower().split())
|
||||||
|
elif myarg == 'includetypes':
|
||||||
|
for itype in getString(Cmd.OB_ORGANIZER_TYPE_LIST).lower().replace(',', ' ').split():
|
||||||
|
if itype in PRINT_ORGANIZER_TYPES:
|
||||||
|
includeTypes.add(itype)
|
||||||
|
else:
|
||||||
|
invalidChoiceExit(itype, PRINT_ORGANIZER_TYPES, True)
|
||||||
|
elif myarg == 'oneorganizer':
|
||||||
|
oneOrganizer = getBoolean()
|
||||||
|
elif myarg == 'shownoorganizerdrives':
|
||||||
|
showNoOrganizerDrives = getChoice(SHOW_NO_PERMISSIONS_DRIVES_CHOICE_MAP, defaultChoice=1, mapChoice=True)
|
||||||
|
elif myarg in {'includefileorganizers', 'includecontentmanagers'}:
|
||||||
|
if getBoolean():
|
||||||
|
roles.add('fileOrganizer')
|
||||||
|
else:
|
||||||
|
unknownArgumentExit()
|
||||||
|
if query and not useDomainAdminAccess:
|
||||||
|
Cmd.SetLocation(queryLocation-1)
|
||||||
|
usageErrorExit(Msg.ONLY_ADMINISTRATORS_CAN_PERFORM_SHARED_DRIVE_QUERIES)
|
||||||
|
if orgUnitId is not None:
|
||||||
|
if not useDomainAdminAccess:
|
||||||
|
Cmd.SetLocation(orgLocation-1)
|
||||||
|
usageErrorExit(Msg.ONLY_ADMINISTRATORS_CAN_SPECIFY_SHARED_DRIVE_ORGUNIT)
|
||||||
|
csvPF.AddTitles(['orgUnit', 'orgUnitId'])
|
||||||
|
if not includeTypes:
|
||||||
|
includeTypes = PRINT_ORGANIZER_TYPES
|
||||||
|
fields = getItemFieldsFromFieldsList('permissions', fieldsList, True)
|
||||||
|
i, count, users = getEntityArgument(users)
|
||||||
|
for user in users:
|
||||||
|
i += 1
|
||||||
|
user, drive = buildGAPIServiceObject(API.DRIVE3, user, i, count)
|
||||||
|
if not drive:
|
||||||
|
continue
|
||||||
|
if useDomainAdminAccess:
|
||||||
|
printGettingAllAccountEntities(Ent.SHAREDDRIVE, query)
|
||||||
|
pageMessage = getPageMessage()
|
||||||
|
else:
|
||||||
|
printGettingAllEntityItemsForWhom(Ent.SHAREDDRIVE, user, i, count, query)
|
||||||
|
pageMessage = getPageMessageForWhom()
|
||||||
|
try:
|
||||||
|
feed = callGAPIpages(drive.drives(), 'list', 'drives',
|
||||||
|
pageMessage=pageMessage,
|
||||||
|
throwReasons=GAPI.DRIVE_USER_THROW_REASONS+[GAPI.INVALID_QUERY, GAPI.INVALID,
|
||||||
|
GAPI.QUERY_REQUIRES_ADMIN_CREDENTIALS,
|
||||||
|
GAPI.NO_LIST_TEAMDRIVES_ADMINISTRATOR_PRIVILEGE,
|
||||||
|
GAPI.FILE_NOT_FOUND],
|
||||||
|
q=query, useDomainAdminAccess=useDomainAdminAccess,
|
||||||
|
fields='nextPageToken,drives(id,name,createdTime,orgUnitId)', pageSize=100)
|
||||||
|
except (GAPI.invalidQuery, GAPI.invalid, GAPI.queryRequiresAdminCredentials,
|
||||||
|
GAPI.noListTeamDrivesAdministratorPrivilege, GAPI.fileNotFound) as e:
|
||||||
|
entityActionFailedWarning([Ent.USER, user, Ent.SHAREDDRIVE, None], str(e), i, count)
|
||||||
|
continue
|
||||||
|
except (GAPI.serviceNotAvailable, GAPI.authError, GAPI.domainPolicy) as e:
|
||||||
|
userDriveServiceNotEnabledWarning(user, str(e), i, count)
|
||||||
|
continue
|
||||||
|
matchFeed = []
|
||||||
|
jcount = len(feed)
|
||||||
|
j = 0
|
||||||
|
for shareddrive in feed:
|
||||||
|
j += 1
|
||||||
|
if ((matchPattern is not None and matchPattern.match(shareddrive['name']) is None) or
|
||||||
|
(orgUnitId is not None and orgUnitId != shareddrive.get('orgUnitId'))):
|
||||||
|
continue
|
||||||
|
printGettingAllEntityItemsForWhom(Ent.PERMISSION, shareddrive['name'], j, jcount)
|
||||||
|
shareddrive['createdTime'] = formatLocalTime(shareddrive['createdTime'])
|
||||||
|
shareddrive['organizers'] = []
|
||||||
|
try:
|
||||||
|
permissions = callGAPIpages(drive.permissions(), 'list', 'permissions',
|
||||||
|
pageMessage=getPageMessageForWhom(),
|
||||||
|
throwReasons=GAPI.DRIVE3_GET_ACL_REASONS,
|
||||||
|
retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS,
|
||||||
|
useDomainAdminAccess=useDomainAdminAccess,
|
||||||
|
fileId=shareddrive['id'], fields=fields, supportsAllDrives=True)
|
||||||
|
for permission in permissions:
|
||||||
|
if permission['type'] in includeTypes and permission['role'] in roles:
|
||||||
|
if domainList:
|
||||||
|
_, domain = permission['emailAddress'].lower().split('@', 1)
|
||||||
|
if domain not in domainList:
|
||||||
|
continue
|
||||||
|
shareddrive['organizers'].append(permission['emailAddress'])
|
||||||
|
if oneOrganizer:
|
||||||
|
break
|
||||||
|
if not shareddrive['organizers']:
|
||||||
|
if showNoOrganizerDrives == 0: # no organizers and showNoOrganizerDrives False - ignore
|
||||||
|
continue
|
||||||
|
matchFeed.append(shareddrive) # no organizers and showNoOrganizerDrives Only/True - keep
|
||||||
|
continue
|
||||||
|
if showNoOrganizerDrives < 0: # organizers and showNoOrganizerDrives Only/True - ignore
|
||||||
|
continue
|
||||||
|
matchFeed.append(shareddrive)
|
||||||
|
except (GAPI.fileNotFound, GAPI.forbidden, GAPI.internalError,
|
||||||
|
GAPI.insufficientAdministratorPrivileges, GAPI.insufficientFilePermissions,
|
||||||
|
GAPI.unknownError, GAPI.invalid):
|
||||||
|
pass
|
||||||
|
if len(matchFeed) == 0:
|
||||||
|
setSysExitRC(NO_ENTITIES_FOUND_RC)
|
||||||
|
for shareddrive in matchFeed:
|
||||||
|
row = {'id': shareddrive['id'], 'name': shareddrive['name'],
|
||||||
|
'organizers': delimiter.join(shareddrive['organizers']),
|
||||||
|
'createdTime': shareddrive['createdTime']}
|
||||||
|
if orgUnitId:
|
||||||
|
row.update(orgUnitInfo)
|
||||||
|
csvPF.WriteRowTitles(row)
|
||||||
|
if csvPF:
|
||||||
|
csvPF.writeCSVfile('SharedDrive Organizers')
|
||||||
|
|
||||||
|
def doPrintSharedDriveOrganizers():
|
||||||
|
printSharedDriveOrganizers([_getAdminEmail()], True)
|
||||||
|
|
||||||
LOOKERSTUDIO_ASSETTYPE_CHOICE_MAP = {
|
LOOKERSTUDIO_ASSETTYPE_CHOICE_MAP = {
|
||||||
'report': ['REPORT'],
|
'report': ['REPORT'],
|
||||||
'datasource': ['DATA_SOURCE'],
|
'datasource': ['DATA_SOURCE'],
|
||||||
@@ -75897,6 +76089,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_SCHEMA: doPrintShowUserSchemas,
|
Cmd.ARG_SCHEMA: doPrintShowUserSchemas,
|
||||||
Cmd.ARG_SHAREDDRIVE: doPrintShowSharedDrives,
|
Cmd.ARG_SHAREDDRIVE: doPrintShowSharedDrives,
|
||||||
Cmd.ARG_SHAREDDRIVEACLS: doPrintShowSharedDriveACLs,
|
Cmd.ARG_SHAREDDRIVEACLS: doPrintShowSharedDriveACLs,
|
||||||
|
Cmd.ARG_SHAREDDRIVEORGANIZERS: doPrintSharedDriveOrganizers,
|
||||||
Cmd.ARG_SITE: deprecatedDomainSites,
|
Cmd.ARG_SITE: deprecatedDomainSites,
|
||||||
Cmd.ARG_SITEACL: deprecatedDomainSites,
|
Cmd.ARG_SITEACL: deprecatedDomainSites,
|
||||||
Cmd.ARG_SITEACTIVITY: deprecatedDomainSites,
|
Cmd.ARG_SITEACTIVITY: deprecatedDomainSites,
|
||||||
@@ -76245,6 +76438,7 @@ MAIN_COMMANDS_OBJ_ALIASES = {
|
|||||||
Cmd.ARG_TEAMDRIVES: Cmd.ARG_SHAREDDRIVE,
|
Cmd.ARG_TEAMDRIVES: Cmd.ARG_SHAREDDRIVE,
|
||||||
Cmd.ARG_TEAMDRIVEACLS: Cmd.ARG_SHAREDDRIVEACLS,
|
Cmd.ARG_TEAMDRIVEACLS: Cmd.ARG_SHAREDDRIVEACLS,
|
||||||
Cmd.ARG_TEAMDRIVEINFO: Cmd.ARG_SHAREDDRIVEINFO,
|
Cmd.ARG_TEAMDRIVEINFO: Cmd.ARG_SHAREDDRIVEINFO,
|
||||||
|
Cmd.ARG_TEAMDRIVEORGANIZERS: Cmd.ARG_SHAREDDRIVEORGANIZERS,
|
||||||
Cmd.ARG_TEAMDRIVETHEMES: Cmd.ARG_SHAREDDRIVETHEMES,
|
Cmd.ARG_TEAMDRIVETHEMES: Cmd.ARG_SHAREDDRIVETHEMES,
|
||||||
Cmd.ARG_TOKENS: Cmd.ARG_TOKEN,
|
Cmd.ARG_TOKENS: Cmd.ARG_TOKEN,
|
||||||
Cmd.ARG_TRANSFER: Cmd.ARG_DATATRANSFER,
|
Cmd.ARG_TRANSFER: Cmd.ARG_DATATRANSFER,
|
||||||
@@ -76937,6 +77131,7 @@ USER_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_SENDAS: printShowSendAs,
|
Cmd.ARG_SENDAS: printShowSendAs,
|
||||||
Cmd.ARG_SHAREDDRIVE: printShowSharedDrives,
|
Cmd.ARG_SHAREDDRIVE: printShowSharedDrives,
|
||||||
Cmd.ARG_SHAREDDRIVEACLS: printShowSharedDriveACLs,
|
Cmd.ARG_SHAREDDRIVEACLS: printShowSharedDriveACLs,
|
||||||
|
Cmd.ARG_SHAREDDRIVEORGANIZERS: printSharedDriveOrganizers,
|
||||||
Cmd.ARG_SHEET: infoPrintShowSheets,
|
Cmd.ARG_SHEET: infoPrintShowSheets,
|
||||||
Cmd.ARG_SHEETRANGE: printShowSheetRanges,
|
Cmd.ARG_SHEETRANGE: printShowSheetRanges,
|
||||||
Cmd.ARG_SIGNATURE: printShowSignature,
|
Cmd.ARG_SIGNATURE: printShowSignature,
|
||||||
@@ -77294,6 +77489,7 @@ USER_COMMANDS_OBJ_ALIASES = {
|
|||||||
Cmd.ARG_TEAMDRIVES: Cmd.ARG_SHAREDDRIVE,
|
Cmd.ARG_TEAMDRIVES: Cmd.ARG_SHAREDDRIVE,
|
||||||
Cmd.ARG_TEAMDRIVEACLS: Cmd.ARG_SHAREDDRIVEACLS,
|
Cmd.ARG_TEAMDRIVEACLS: Cmd.ARG_SHAREDDRIVEACLS,
|
||||||
Cmd.ARG_TEAMDRIVEINFO: Cmd.ARG_SHAREDDRIVEINFO,
|
Cmd.ARG_TEAMDRIVEINFO: Cmd.ARG_SHAREDDRIVEINFO,
|
||||||
|
Cmd.ARG_TEAMDRIVEORGANIZERS: Cmd.ARG_SHAREDDRIVEORGANIZERS,
|
||||||
Cmd.ARG_TEAMDRIVETHEMES: Cmd.ARG_SHAREDDRIVETHEMES,
|
Cmd.ARG_TEAMDRIVETHEMES: Cmd.ARG_SHAREDDRIVETHEMES,
|
||||||
Cmd.ARG_THREADS: Cmd.ARG_THREAD,
|
Cmd.ARG_THREADS: Cmd.ARG_THREAD,
|
||||||
Cmd.ARG_TOKENS: Cmd.ARG_TOKEN,
|
Cmd.ARG_TOKENS: Cmd.ARG_TOKEN,
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
|
|
||||||
# Copyright (C) 2024 Ross Scroggs All Rights Reserved.
|
# Copyright (C) 2025 Ross Scroggs All Rights Reserved.
|
||||||
#
|
#
|
||||||
# All Rights Reserved.
|
# All Rights Reserved.
|
||||||
#
|
#
|
||||||
@@ -755,6 +755,7 @@ class GamCLArgs():
|
|||||||
ARG_SHAREDDRIVES = 'shareddrives'
|
ARG_SHAREDDRIVES = 'shareddrives'
|
||||||
ARG_SHAREDDRIVEACLS = 'shareddriveacls'
|
ARG_SHAREDDRIVEACLS = 'shareddriveacls'
|
||||||
ARG_SHAREDDRIVEINFO = 'shareddriveinfo'
|
ARG_SHAREDDRIVEINFO = 'shareddriveinfo'
|
||||||
|
ARG_SHAREDDRIVEORGANIZERS = 'shareddriveorganizers'
|
||||||
ARG_SHAREDDRIVETHEMES = 'shareddrivethemes'
|
ARG_SHAREDDRIVETHEMES = 'shareddrivethemes'
|
||||||
ARG_SHEET = 'sheet'
|
ARG_SHEET = 'sheet'
|
||||||
ARG_SHEETS = 'sheets'
|
ARG_SHEETS = 'sheets'
|
||||||
@@ -784,6 +785,7 @@ class GamCLArgs():
|
|||||||
ARG_TEAMDRIVES = 'teamdrives'
|
ARG_TEAMDRIVES = 'teamdrives'
|
||||||
ARG_TEAMDRIVEACLS = 'teamdriveacls'
|
ARG_TEAMDRIVEACLS = 'teamdriveacls'
|
||||||
ARG_TEAMDRIVEINFO = 'teamdriveinfo'
|
ARG_TEAMDRIVEINFO = 'teamdriveinfo'
|
||||||
|
ARG_TEAMDRIVEORGANIZERS = 'teamdriveorganizers'
|
||||||
ARG_TEAMDRIVETHEMES = 'teamdrivethemes'
|
ARG_TEAMDRIVETHEMES = 'teamdrivethemes'
|
||||||
ARG_THREAD = 'thread'
|
ARG_THREAD = 'thread'
|
||||||
ARG_THREADS = 'threads'
|
ARG_THREADS = 'threads'
|
||||||
@@ -964,6 +966,7 @@ class GamCLArgs():
|
|||||||
OB_MOBILE_ENTITY = 'MobileEntity'
|
OB_MOBILE_ENTITY = 'MobileEntity'
|
||||||
OB_NETWORK_ID = 'networkID'
|
OB_NETWORK_ID = 'networkID'
|
||||||
OB_NAME = 'Name'
|
OB_NAME = 'Name'
|
||||||
|
OB_ORGANIZER_TYPE_LIST = 'OrganizerTypeList'
|
||||||
OB_ORGUNIT_ENTITY = 'OrgUnitEntity'
|
OB_ORGUNIT_ENTITY = 'OrgUnitEntity'
|
||||||
OB_ORGUNIT_ITEM = 'OrgUnitItem'
|
OB_ORGUNIT_ITEM = 'OrgUnitItem'
|
||||||
OB_ORGUNIT_PATH = 'OrgUnitPath'
|
OB_ORGUNIT_PATH = 'OrgUnitPath'
|
||||||
|
|||||||
@@ -106,12 +106,14 @@ The second form is backwards compatible with Legacy GAM and selection with `<CrO
|
|||||||
autoupdatethrough|
|
autoupdatethrough|
|
||||||
backlightinfo|
|
backlightinfo|
|
||||||
bootmode|
|
bootmode|
|
||||||
|
chromeostype|
|
||||||
cpuinfo|
|
cpuinfo|
|
||||||
cpustatusreports|
|
cpustatusreports|
|
||||||
deprovisionreason|
|
deprovisionreason|
|
||||||
devicefiles|
|
devicefiles|
|
||||||
deviceid|
|
deviceid|
|
||||||
devicelicensetype|
|
devicelicensetype|
|
||||||
|
diskspaceusage|
|
||||||
diskvolumereports|
|
diskvolumereports|
|
||||||
dockmacaddress|
|
dockmacaddress|
|
||||||
ethernetmacaddress|
|
ethernetmacaddress|
|
||||||
@@ -119,6 +121,7 @@ The second form is backwards compatible with Legacy GAM and selection with `<CrO
|
|||||||
extendedsupporteligible|
|
extendedsupporteligible|
|
||||||
extendedsupportstart|
|
extendedsupportstart|
|
||||||
extendedsupportenabled|
|
extendedsupportenabled|
|
||||||
|
faninfo|
|
||||||
firmwareversion|
|
firmwareversion|
|
||||||
firstenrollmenttime|
|
firstenrollmenttime|
|
||||||
lastdeprovisiontimestamp|
|
lastdeprovisiontimestamp|
|
||||||
|
|||||||
@@ -210,7 +210,7 @@ gam print devices [todrive <ToDriveAttribute>*]
|
|||||||
<DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
<DeviceFieldName>* [fields <DeviceFieldNameList>] [userfields <DeviceUserFieldNameList>]
|
||||||
[orderby <DeviceOrderByFieldName> [ascending|descending]]
|
[orderby <DeviceOrderByFieldName> [ascending|descending]]
|
||||||
[all|company|personal|nocompanydevices|nopersonaldevices]
|
[all|company|personal|nocompanydevices|nopersonaldevices]
|
||||||
[nodeviceusers]
|
[nodeviceusers|oneuserperrow]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
```
|
```
|
||||||
By default, all devices are displayed; use the query options to limit the display.
|
By default, all devices are displayed; use the query options to limit the display.
|
||||||
@@ -231,6 +231,9 @@ Select the view of devices to display:
|
|||||||
By default, Gam makes additional API calls to display the device users for the devices;
|
By default, Gam makes additional API calls to display the device users for the devices;
|
||||||
use `nodeviceuser` to suppress making the additional calls.
|
use `nodeviceuser` to suppress making the additional calls.
|
||||||
|
|
||||||
|
By default, when device users are displayed, they are all displayed on one row;
|
||||||
|
use `oneuserperrow` to have each of a device's users displayed on a separate row with all of the other device fields.
|
||||||
|
|
||||||
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
By default, Gam displays the information as columns of fields; the following option causes the output to be in JSON format,
|
||||||
* `formatjson` - Display the fields in JSON format.
|
* `formatjson` - Display the fields in JSON format.
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,25 @@ Add the `-s` option to the end of the above commands to suppress creating the `g
|
|||||||
|
|
||||||
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
See [Downloads-Installs-GAM7](https://github.com/GAM-team/GAM/wiki/Downloads-Installs) for Windows or other options, including manual installation
|
||||||
|
|
||||||
|
### 7.07.17
|
||||||
|
|
||||||
|
Added option `oneuserperrow` to `gam print devices` to have each of a
|
||||||
|
device's users displayed on a separate row with all of the other device fields.
|
||||||
|
|
||||||
|
### 7.07.16
|
||||||
|
|
||||||
|
Added `chromeostype`, `diskspaceusage` and `faninfo` to `<CrOSFieldName>` for use in `gam info|print cros`.
|
||||||
|
|
||||||
|
Fixed bugs/cleaned output in `gam info|print cros`.
|
||||||
|
|
||||||
|
### 7.07.15
|
||||||
|
|
||||||
|
Added option `shareddrivesoption included|included_if_account_is_not_a_member|not_included` to `gam create vaultexport`.
|
||||||
|
|
||||||
|
The previous option `includeshareddrives <Boolean>` is mapped as follows:
|
||||||
|
* `includeshareddrives false` - `shareddrivesoption included_if_account_is_not_a_member`
|
||||||
|
* `includeshareddrives true` - `shareddrivesoption included`
|
||||||
|
|
||||||
### 7.07.14
|
### 7.07.14
|
||||||
|
|
||||||
Update `gam setup chat` output to include the following that shows the actual Cloud Pub/Sub Topic Name.
|
Update `gam setup chat` output to include the following that shows the actual Cloud Pub/Sub Topic Name.
|
||||||
|
|||||||
@@ -251,7 +251,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
admin@server:/Users/admin$ rm -f /Users/admin/GAMConfig/oauth2.txt
|
||||||
admin@server:/Users/admin$ gam version
|
admin@server:/Users/admin$ gam version
|
||||||
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
WARNING: Config File: /Users/admin/GAMConfig/gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: /Users/admin/GAMConfig/oauth2.txt, Not Found
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.17 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -989,7 +989,7 @@ writes the credentials into the file oauth2.txt.
|
|||||||
C:\>del C:\GAMConfig\oauth2.txt
|
C:\>del C:\GAMConfig\oauth2.txt
|
||||||
C:\>gam version
|
C:\>gam version
|
||||||
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
WARNING: Config File: C:\GAMConfig\gam.cfg, Section: DEFAULT, Item: oauth2_txt, Value: C:\GAMConfig\oauth2.txt, Not Found
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM - pythonsource
|
GAM 7.07.17 - https://github.com/GAM-team/GAM - pythonsource
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
Windows-10-10.0.17134 AMD64
|
Windows-10-10.0.17134 AMD64
|
||||||
|
|||||||
@@ -30,6 +30,7 @@
|
|||||||
- [Display ACLs for Shared Drives with all organizers outside of your domain](#display-acls-for-shared-drives-with-all-organizers-outside-of-your-domain)
|
- [Display ACLs for Shared Drives with all organizers outside of your domain](#display-acls-for-shared-drives-with-all-organizers-outside-of-your-domain)
|
||||||
- [Display ACLs for Shared Drives with all ACLs outside of your domain](#display-acls-for-shared-drives-with-all-acls-outside-of-your-domain)
|
- [Display ACLs for Shared Drives with all ACLs outside of your domain](#display-acls-for-shared-drives-with-all-acls-outside-of-your-domain)
|
||||||
- [Clean up scammed Shared Drives](#clean-up-scammed-shared-drives)
|
- [Clean up scammed Shared Drives](#clean-up-scammed-shared-drives)
|
||||||
|
- [Delete old empty Shared Drives](#delete-old-empty-shared-drives)
|
||||||
|
|
||||||
## API documentation
|
## API documentation
|
||||||
* [Drive API - Drives](https://developers.google.com/drive/api/reference/rest/v3/drives)
|
* [Drive API - Drives](https://developers.google.com/drive/api/reference/rest/v3/drives)
|
||||||
@@ -791,3 +792,37 @@ This is not reversible, proceed with caution.
|
|||||||
```
|
```
|
||||||
gam redirect stdout ./DeleteSharedDrives.txt multiprocess redirect stderr stdout csv ./SharedDriveACLsAllExternal.csv gam delete teamdrive "~id" allowitemdeletion
|
gam redirect stdout ./DeleteSharedDrives.txt multiprocess redirect stderr stdout csv ./SharedDriveACLsAllExternal.csv gam delete teamdrive "~id" allowitemdeletion
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Delete old empty Shared Drives
|
||||||
|
```
|
||||||
|
# Get a list of Shared Drives created before one year ago; alter date<-1y as required
|
||||||
|
gam config csv_output_row_filter "createdTime:date<-1y" redirect csv ./TeamDrives.csv print teamdrives fields id,name,createdtime
|
||||||
|
|
||||||
|
# You'll need a list of Shared Drive IDs and organizers; get ACLs for Shared Drives from above
|
||||||
|
gam redirect csv ./TeamDriveACLs.csv multiprocess csv ./TeamDrives.csv gam print drivefileacls "~id" fields id,emailaddress,role,type,deleted
|
||||||
|
|
||||||
|
# Customize script: https://github.com/taers232c/GAM-Scripts3/blob/master/GetTeamDriveOrganizers.py
|
||||||
|
DOMAIN_LIST = ['yourdomain.org']
|
||||||
|
|
||||||
|
INCLUDE_TYPES = {
|
||||||
|
'user': True,
|
||||||
|
'group': False,
|
||||||
|
}
|
||||||
|
|
||||||
|
ONE_ORGANIZER = True
|
||||||
|
SHOW_NO_ORGANIZER_DRIVES = True
|
||||||
|
INCLUDE_FILE_ORGANIZERS = False
|
||||||
|
|
||||||
|
# Run script
|
||||||
|
python GetTeamDriveOrganizers.py TeamDriveACLs.csv TeamDrives.csv TeamDriveOrganizers.csv
|
||||||
|
|
||||||
|
# Inspect TeamDriveOrganizers.csv, you'll have to deal with Shared Drives with no organizer/manager
|
||||||
|
|
||||||
|
# Get old empty Shared Drives
|
||||||
|
gam config num_threads 10 csv_input_row_filter "organizers:regex:^.+$" csv_output_row_filter "Total:count=0" redirect csv ./OldEmptySharedDrives.csv multiprocess redirect stderr - multiprocess csv ./TeamDriveOrganizers.csv gam user "~organizers" print filecounts select teamdriveid "~id" showsize
|
||||||
|
|
||||||
|
# Inspect OldEmptySharedDrives.csv, if you're confident of the results, proceed
|
||||||
|
|
||||||
|
# Delete old empty Shared Drives
|
||||||
|
gam redirect stdout ./DeleteOldEmptySharedDrives.txt multiprocess redirect stderr stdout csv ./OldEmptySharedDrives.csv gam user "~User" delete shareddrive "~id"
|
||||||
|
```
|
||||||
@@ -1,4 +1,5 @@
|
|||||||
# Users - Gmail - Delegates
|
# Users - Gmail - Delegates
|
||||||
|
- [Notes](#notes)
|
||||||
- [API documentation](#api-documentation)
|
- [API documentation](#api-documentation)
|
||||||
- [Definitions](#definitions)
|
- [Definitions](#definitions)
|
||||||
- [Aliases](#aliases)
|
- [Aliases](#aliases)
|
||||||
@@ -8,6 +9,11 @@
|
|||||||
- [Display Gmail delegates](#display-gmail-delegates)
|
- [Display Gmail delegates](#display-gmail-delegates)
|
||||||
- [Delete all delegates for a user](#delete-all-delegates-for-a-user)
|
- [Delete all delegates for a user](#delete-all-delegates-for-a-user)
|
||||||
|
|
||||||
|
## Notes
|
||||||
|
|
||||||
|
To use Gmail delegation, the delegator and delagatee must be in org units where
|
||||||
|
mail delegation is enabled. In the admin console, go to Apps/Google Workspace/Gmail/User Settings.
|
||||||
|
|
||||||
## API documentation
|
## API documentation
|
||||||
* [Gmail API - Delegates](https://developers.google.com/gmail/api/v1/reference/users.settings.delegates)
|
* [Gmail API - Delegates](https://developers.google.com/gmail/api/v1/reference/users.settings.delegates)
|
||||||
* [Delegation Notes](https://support.google.com/a/answer/7223765)
|
* [Delegation Notes](https://support.google.com/a/answer/7223765)
|
||||||
|
|||||||
@@ -243,7 +243,8 @@ gam create vaultexport|export matter <MatterItem> [name <String>] corpus calenda
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>] [timezone <TimeZone>]
|
||||||
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
[locationquery <StringList>] [peoplequery <StringList>] [minuswords <StringList>]
|
||||||
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
[responsestatuses <AttendeeStatus>(,<AttendeeStatus>)*] [calendarversiondate <Date>|<Time>]
|
||||||
[includeshareddrives <Boolean>] [driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
[(includeshareddrives <Boolean>)|(shareddrivesoption included|included_if_account_is_not_a_member|not_included)]
|
||||||
|
[driveversiondate <Date>|<Time>] [includeaccessinfo <Boolean>]
|
||||||
[driveclientsideencryption any|encrypted|unencrypted]
|
[driveclientsideencryption any|encrypted|unencrypted]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
[excludedrafts <Boolean>] [mailclientsideencryption any|encrypted|unencrypted]
|
||||||
@@ -315,8 +316,11 @@ For `corpus calendar`, you can specify the format of the exported data:
|
|||||||
|
|
||||||
For `corpus drive`, you can specify advanced search options:
|
For `corpus drive`, you can specify advanced search options:
|
||||||
* `driveversiondate <Date>|<Time>` - Search the versions of the Drive file as of the reference date. These timestamps are in GMT and rounded down to the given date.
|
* `driveversiondate <Date>|<Time>` - Search the versions of the Drive file as of the reference date. These timestamps are in GMT and rounded down to the given date.
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Mapped to `sharedrivesoption included_if_account_is_not_a_member`
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Mapped to `sharedrivesoption included`
|
||||||
|
* `sharedrivesoption included` - Resources in shared drives are included in the search
|
||||||
|
* `sharedrivesoption included_if_account_is_not_a_member` - Resources in shared drives where account is not a member are included in the search, this is the default
|
||||||
|
* `sharedrivesoption not_included` - Resources in shared drives are not included in the search
|
||||||
* `driveclientsideencryption any` - Include both client-side encrypted and unencrypted content in search, this is the default.
|
* `driveclientsideencryption any` - Include both client-side encrypted and unencrypted content in search, this is the default.
|
||||||
* `driveclientsideencryption encrypted` - Include client-side encrypted content only in search.
|
* `driveclientsideencryption encrypted` - Include client-side encrypted content only in search.
|
||||||
* `driveclientsideencryption unencrypted` - Include client-side unencrypted content only in search.
|
* `driveclientsideencryption unencrypted` - Include client-side unencrypted content only in search.
|
||||||
@@ -599,7 +603,7 @@ gam create vaulthold|hold matter <MatterItem> [name <String>] corpus calendar|dr
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[covereddata calllogs|textmessages|voicemails]
|
[covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails|returnidonly]
|
[showdetails|returnidonly]
|
||||||
```
|
```
|
||||||
Specify the name of the hold:
|
Specify the name of the hold:
|
||||||
@@ -621,8 +625,8 @@ Specify the search method, this option is required:
|
|||||||
The `query <QueryVaultCorpus>` option can still be used but it is much simpler to use the following options.
|
The `query <QueryVaultCorpus>` option can still be used but it is much simpler to use the following options.
|
||||||
|
|
||||||
For `corpus drive`, you can specify advanced search options:
|
For `corpus drive`, you can specify advanced search options:
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Files in shared drives are not included in the hold, this is the default
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Files in shared drives are included in the hold
|
||||||
|
|
||||||
For `corpus mail`, you can specify search terms to limit the search.
|
For `corpus mail`, you can specify search terms to limit the search.
|
||||||
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
||||||
@@ -652,12 +656,12 @@ gam update vaulthold|hold <HoldItem> matter <MatterItem>
|
|||||||
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
[terms <String>] [start|starttime <Date>|<Time>] [end|endtime <Date>|<Time>]
|
||||||
[includerooms <Boolean>]
|
[includerooms <Boolean>]
|
||||||
[covereddata calllogs|textmessages|voicemails]
|
[covereddata calllogs|textmessages|voicemails]
|
||||||
[includeshareddrives|includeteamdrives <Boolean>]
|
[includeshareddrives <Boolean>]
|
||||||
[showdetails]
|
[showdetails]
|
||||||
```
|
```
|
||||||
For a hold with `corpus drive`, you can specify advanced search options:
|
For a hold with `corpus drive`, you can specify advanced search options:
|
||||||
* `includeshareddrives False` - Do not include Shared Drives in the search, this is the default.
|
* `includeshareddrives False` - Files in shared drives are not included in the hold, this is the default
|
||||||
* `includeshareddrives True` - Include Shared Drives in the search.
|
* `includeshareddrives True` - Files in shared drives are included in the hold
|
||||||
|
|
||||||
For a hold with `corpus mail`, you can specify search terms to limit the search.
|
For a hold with `corpus mail`, you can specify search terms to limit the search.
|
||||||
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
* `terms <String>` - [Vault search](https://support.google.com/vault/answer/2474474)
|
||||||
|
|||||||
@@ -3,7 +3,7 @@
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.17 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -15,7 +15,7 @@ Time: 2023-06-02T21:10:00-07:00
|
|||||||
Print the current version of Gam with details and time offset information
|
Print the current version of Gam with details and time offset information
|
||||||
```
|
```
|
||||||
gam version timeoffset
|
gam version timeoffset
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.17 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -27,7 +27,7 @@ Your system time differs from www.googleapis.com by less than 1 second
|
|||||||
Print the current version of Gam with extended details and SSL information
|
Print the current version of Gam with extended details and SSL information
|
||||||
```
|
```
|
||||||
gam version extended
|
gam version extended
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.07.17 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -64,7 +64,7 @@ MacOS High Sierra 10.13.6 x86_64
|
|||||||
Path: /Users/Admin/bin/gam7
|
Path: /Users/Admin/bin/gam7
|
||||||
Version Check:
|
Version Check:
|
||||||
Current: 5.35.08
|
Current: 5.35.08
|
||||||
Latest: 7.07.14
|
Latest: 7.07.17
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -72,7 +72,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
7.07.14
|
7.07.17
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -82,7 +82,7 @@ echo $VER
|
|||||||
Print the current version of Gam and address of this Wiki
|
Print the current version of Gam and address of this Wiki
|
||||||
```
|
```
|
||||||
gam help
|
gam help
|
||||||
GAM 7.07.14 - https://github.com/GAM-team/GAM
|
GAM 7.07.17 - https://github.com/GAM-team/GAM
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.3 64-bit final
|
Python 3.13.3 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user