mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Compare commits
30 Commits
v7.14.04
...
20250801.0
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a87ff9effc | ||
|
|
df793c2bbb | ||
|
|
3bc32da275 | ||
|
|
ce7e506c29 | ||
|
|
a9d8ac27d3 | ||
|
|
58912ae7ac | ||
|
|
f882439cbd | ||
|
|
56bc52aa28 | ||
|
|
416125abac | ||
|
|
904292ded3 | ||
|
|
5f55bcc812 | ||
|
|
b35de53f5d | ||
|
|
3c34948678 | ||
|
|
0be73db60b | ||
|
|
5b57b51384 | ||
|
|
139896ec3b | ||
|
|
9b52c0bf18 | ||
|
|
b9c9b59f7b | ||
|
|
0e0877e084 | ||
|
|
bdce13e97b | ||
|
|
9c4a17e12c | ||
|
|
a64f4d4a46 | ||
|
|
c396a3b901 | ||
|
|
78453a15af | ||
|
|
a0282ba775 | ||
|
|
7b708bfeea | ||
|
|
fedb49ca9d | ||
|
|
87b4917fb0 | ||
|
|
5a9486c08a | ||
|
|
e7074cb0bc |
@@ -3436,6 +3436,13 @@ gam print guardian|guardians [todrive <ToDriveAttribute>*] [accepted|invitations
|
|||||||
[showstudentemails]
|
[showstudentemails]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
|
# Business Profile Accounts
|
||||||
|
|
||||||
|
gam show businessprofileaccounts
|
||||||
|
[type locationgroup|organization|personal|usergroup]
|
||||||
|
gam print businessprofileaccounts [todrive <ToDriveAttribute>*]
|
||||||
|
[type locationgroup|organization|personal|usergroup]
|
||||||
|
|
||||||
# Classroom User Profiles
|
# Classroom User Profiles
|
||||||
|
|
||||||
gam <UserTypeEntity> print classroomprofile [todrive <ToDriveAttribute>*]
|
gam <UserTypeEntity> print classroomprofile [todrive <ToDriveAttribute>*]
|
||||||
@@ -4860,8 +4867,8 @@ gam <UserTypeEntity> sendemail from <EmailAddress>
|
|||||||
allowcontentmanagerstosharefolders|
|
allowcontentmanagerstosharefolders|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
domainusersonly|
|
domainusersonly|
|
||||||
downloadrestrictedforreaders|
|
downloadrestrictedforreaders|downloadrestrictions.restrictedforreaders|
|
||||||
downloadrestrictedforwriters|
|
downloadrestrictedforwriters|downloadrestrictions.restrictedforwriters|
|
||||||
drivemembersonly|teammembersonly|
|
drivemembersonly|teammembersonly|
|
||||||
sharingfoldersrequiresorganizerpermission
|
sharingfoldersrequiresorganizerpermission
|
||||||
|
|
||||||
@@ -4878,7 +4885,7 @@ In these commands, the Google administrator named in oauth2.txt is used.
|
|||||||
gam show shareddrivethemes
|
gam show shareddrivethemes
|
||||||
gam create shareddrive <Name>
|
gam create shareddrive <Name>
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[movetoorgunitdelay <Integer>]
|
[movetoorgunitdelay <Integer>]
|
||||||
@@ -4932,7 +4939,7 @@ In these commands, you specify an administrator and then indicate that you want
|
|||||||
|
|
||||||
gam <UserTypeEntity> create shareddrive <Name> adminaccess
|
gam <UserTypeEntity> create shareddrive <Name> adminaccess
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[movetoorgunitdelay <Integer>]
|
[movetoorgunitdelay <Integer>]
|
||||||
@@ -4966,7 +4973,7 @@ In these commands, you specify a user, administrator access is not used.
|
|||||||
|
|
||||||
gam <UserTypeEntity> create shareddrive <Name>
|
gam <UserTypeEntity> create shareddrive <Name>
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[movetoorgunitdelay <Integer>]
|
[movetoorgunitdelay <Integer>]
|
||||||
@@ -6597,6 +6604,7 @@ gam <UserTypeEntity> print chatemojis [todrive <ToDriveAttribute>*]
|
|||||||
(folderColorRgb <ColorValue>)|
|
(folderColorRgb <ColorValue>)|
|
||||||
(indexabletext <String>)|
|
(indexabletext <String>)|
|
||||||
(inheritedpermissionsdisabled [<Boolean>])|
|
(inheritedpermissionsdisabled [<Boolean>])|
|
||||||
|
(itemdownloadrestriction restrictedforreaders|restrictedforwriters [<Boolean>])|
|
||||||
(keeprevisionforever|pinned)|
|
(keeprevisionforever|pinned)|
|
||||||
(lastviewedbyme <Time>)|
|
(lastviewedbyme <Time>)|
|
||||||
(mimetype <MimeType>)|
|
(mimetype <MimeType>)|
|
||||||
@@ -7071,6 +7079,10 @@ gam <UserTypeEntity> collect orphans
|
|||||||
contentrestrictions.restrictiontime|
|
contentrestrictions.restrictiontime|
|
||||||
contentrestrictions.type
|
contentrestrictions.type
|
||||||
|
|
||||||
|
<DriveDownloadRestrictionsSubfieldName> ::=
|
||||||
|
downloadrestrictions.itemdownloadrestriction|
|
||||||
|
downloadrestrictions.effectivedownloadrestrictionwithcontext
|
||||||
|
|
||||||
<ClassificationLabelInfoSubfieldName> ::=
|
<ClassificationLabelInfoSubfieldName> ::=
|
||||||
labels.id| # modifiedByMe
|
labels.id| # modifiedByMe
|
||||||
labels.revisionid| # copyRequiresWriterPermission
|
labels.revisionid| # copyRequiresWriterPermission
|
||||||
@@ -7164,6 +7176,8 @@ gam <UserTypeEntity> collect orphans
|
|||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
createddate|createdtime|
|
createddate|createdtime|
|
||||||
description|
|
description|
|
||||||
|
downloadrestictions|
|
||||||
|
<DriveDownloadRestrictionsSubfieldName>|
|
||||||
driveid|
|
driveid|
|
||||||
drivename|
|
drivename|
|
||||||
editable|
|
editable|
|
||||||
@@ -8475,8 +8489,8 @@ gam <UserTypeEntity> print tasklists [todrive <ToDriveAttribute>*]
|
|||||||
allowcontentmanagerstosharefolders|
|
allowcontentmanagerstosharefolders|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
domainusersonly|
|
domainusersonly|
|
||||||
downloadrestrictedforreaders|
|
downloadrestrictedforreaders|downloadrestrictions.restrictedforreaders|
|
||||||
downloadrestrictedforwriters|
|
downloadrestrictedforwriters|downloadrestrictions.restrictedforwriters|
|
||||||
drivemembersonly|teammembersonly|
|
drivemembersonly|teammembersonly|
|
||||||
sharingfoldersrequiresorganizerpermission
|
sharingfoldersrequiresorganizerpermission
|
||||||
|
|
||||||
@@ -8491,13 +8505,13 @@ sharingfoldersrequiresorganizerpermission true
|
|||||||
gam <UserTypeEntity> show shareddrivethemes
|
gam <UserTypeEntity> show shareddrivethemes
|
||||||
gam <UserTypeEntity> create shareddrive <Name>
|
gam <UserTypeEntity> create shareddrive <Name>
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>]
|
[hide|hidden <Boolean>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
||||||
gam <UserTypeEntity> update shareddrive <SharedDriveEntity> [name <Name>]
|
gam <UserTypeEntity> update shareddrive <SharedDriveEntity> [name <Name>]
|
||||||
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
[(theme|themeid <String>) | ([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>]
|
[hide|hidden <Boolean>]
|
||||||
gam <UserTypeEntity> delete shareddrive <SharedDriveEntity>
|
gam <UserTypeEntity> delete shareddrive <SharedDriveEntity>
|
||||||
[allowitemdeletion]
|
[allowitemdeletion]
|
||||||
@@ -8696,3 +8710,11 @@ gam <UserTypeEntity> print youtubechannels [todrive <ToDriveAttribute>*]
|
|||||||
gam create|add verify|verification <DomainName>
|
gam create|add verify|verification <DomainName>
|
||||||
gam update verify|verification <DomainName> cname|txt|text|site|file
|
gam update verify|verification <DomainName> cname|txt|text|site|file
|
||||||
gam info verify|verification
|
gam info verify|verification
|
||||||
|
|
||||||
|
# Web Resourses and Sites
|
||||||
|
|
||||||
|
gam <UserTypeEntity> show webresources
|
||||||
|
gam <UserTypeEntity> print webresources [todrive <ToDriveAttribute>*]
|
||||||
|
gam <UserTypeEntity> show webmastersites
|
||||||
|
gam <UserTypeEntity> print webmastersites [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
|||||||
@@ -1,3 +1,84 @@
|
|||||||
|
7.18.00
|
||||||
|
|
||||||
|
Added commands to display Business Profile Accounts.
|
||||||
|
These are special purpose commands and will not generally be used.
|
||||||
|
```
|
||||||
|
gam show businessprofileaccounts
|
||||||
|
gam print businessprofileaccounts [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
|
||||||
|
7.17.03
|
||||||
|
|
||||||
|
Fixed bug in `gam <UserItem> print|show chatspaces asadmin fields <ChatSpaceFieldNameList>` that caused a trap
|
||||||
|
when `displayname` was not in `<ChatSpaceFieldNameList>`.
|
||||||
|
|
||||||
|
7.17.02
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> print|show webmastersites` to handle the following error
|
||||||
|
that occurs if you haven't updated your project to include the Google Search Console API.
|
||||||
|
```
|
||||||
|
ERROR: 403: permissionDenied - Google Search Console API has not been used in project 111055363999 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/searchconsole.googleapis.com/overview?project=111055363999 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
|
||||||
|
```
|
||||||
|
|
||||||
|
7.17.01
|
||||||
|
|
||||||
|
Fixed bug in `gam <UserTypeEntity> show webmastersites` that caused a trap.
|
||||||
|
|
||||||
|
7.17.00
|
||||||
|
|
||||||
|
Added commands to discover Sites and WebResources that managed users (previously unmanaged) may have access to for better governance and visibility.
|
||||||
|
These are special purpose commands and will not generally be used.
|
||||||
|
```
|
||||||
|
gam <UserTypeEntity> show webresources
|
||||||
|
gam <UserTypeEntity> print webresources [todrive <ToDriveAttribute>*]
|
||||||
|
gam <UserTypeEntity> show webmastersites
|
||||||
|
gam <UserTypeEntity> print webmastersites [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
|
||||||
|
7.16.01
|
||||||
|
|
||||||
|
The Drive API now supports setting download restrictions on individual files.
|
||||||
|
|
||||||
|
Added `downloadrestictions` and `<DriveDownloadRestrictionsSubfieldName>` to `<DriveFieldName>`.
|
||||||
|
```
|
||||||
|
<DriveDownloadRestrictionsSubfieldName> ::=
|
||||||
|
downloadrestrictions.itemdownloadrestriction|
|
||||||
|
downloadrestrictions.effectivedownloadrestrictionwithcontext
|
||||||
|
```
|
||||||
|
|
||||||
|
Added `itemdownloadrestriction restrictedforreaders|restrictedforwriters [<Boolean>]`
|
||||||
|
to `<DriveFileAttribute>`.
|
||||||
|
|
||||||
|
From the Drive API documentation:
|
||||||
|
```
|
||||||
|
itemDownloadRestriction - The download restriction of the file applied directly by the owner or organizer. This does not take into account shared drive settings or DLP rules.
|
||||||
|
effectiveDownloadRestrictionWithContext - Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
|
||||||
|
restrictedForReaders - Whether download and copy is restricted for readers.
|
||||||
|
restrictedForWriters - Whether download and copy is restricted for writers. If true, download is also restricted for readers.
|
||||||
|
```
|
||||||
|
|
||||||
|
7.16.00
|
||||||
|
|
||||||
|
Removed `drive_v3_native_names` from `gam.cfg`; GAM now only uses Drive API v3 fields names on output.
|
||||||
|
If you had `drive_v3_native_names = False` in `gam.cfg` or are updating from Legacy GAM:
|
||||||
|
|
||||||
|
* See: https://github.com/GAM-team/GAM/wiki/Drive-REST-API-v3
|
||||||
|
|
||||||
|
7.15.01
|
||||||
|
|
||||||
|
Added `downloadrestrictions.restrictedforreaders` and `downloadrestrictions.restrictedforwriters`
|
||||||
|
to `<SharedDriveRestrictionsSubfieldName>`; previously, only the abbreviations `downloadrestrictedforreaders`
|
||||||
|
and `downloadrestrictedforwriters` were supported (they are still supported).
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> copy drivefile` to handle unexpected data returned by Google that caused a trap.
|
||||||
|
|
||||||
|
7.15.00
|
||||||
|
|
||||||
|
Updated `gam print shareddriveorganizers` to make `shownoorganizerdrives` default to `True`
|
||||||
|
as documented; it was defaulting to `False`.
|
||||||
|
|
||||||
|
Cleaned up code for processing Python dictionary structures; this should have no noticable effect.
|
||||||
|
|
||||||
7.14.04
|
7.14.04
|
||||||
|
|
||||||
Fixed bug in `gam print|show cigroups cimember <UserItem>` that generated the following error:
|
Fixed bug in `gam print|show cigroups cimember <UserItem>` that generated the following error:
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -24,6 +24,7 @@ ACCESSCONTEXTMANAGER = 'accesscontextmanager'
|
|||||||
ALERTCENTER = 'alertcenter'
|
ALERTCENTER = 'alertcenter'
|
||||||
ANALYTICS_ADMIN = 'analyticsadmin'
|
ANALYTICS_ADMIN = 'analyticsadmin'
|
||||||
CALENDAR = 'calendar'
|
CALENDAR = 'calendar'
|
||||||
|
BUSINESSACCOUNTMANAGEMENT = 'mybusinessaccountmanagement'
|
||||||
CBCM = 'cbcm'
|
CBCM = 'cbcm'
|
||||||
CHAT = 'chat'
|
CHAT = 'chat'
|
||||||
CHAT_CUSTOM_EMOJIS = 'chatcustomemojis'
|
CHAT_CUSTOM_EMOJIS = 'chatcustomemojis'
|
||||||
@@ -85,6 +86,7 @@ PRINTERS = 'printers'
|
|||||||
PUBSUB = 'pubsub'
|
PUBSUB = 'pubsub'
|
||||||
REPORTS = 'reports'
|
REPORTS = 'reports'
|
||||||
RESELLER = 'reseller'
|
RESELLER = 'reseller'
|
||||||
|
SEARCHCONSOLE = 'searchconsole'
|
||||||
SERVICEACCOUNTLOOKUP = 'serviceaccountlookup'
|
SERVICEACCOUNTLOOKUP = 'serviceaccountlookup'
|
||||||
SERVICEMANAGEMENT = 'servicemanagement'
|
SERVICEMANAGEMENT = 'servicemanagement'
|
||||||
SERVICEUSAGE = 'serviceusage'
|
SERVICEUSAGE = 'serviceusage'
|
||||||
@@ -100,6 +102,7 @@ TASKS = 'tasks'
|
|||||||
VAULT = 'vault'
|
VAULT = 'vault'
|
||||||
YOUTUBE = 'youtube'
|
YOUTUBE = 'youtube'
|
||||||
#
|
#
|
||||||
|
BUSINESSACCOUNTMANAGEMENT_SCOPE = 'https://www.googleapis.com/auth/business.manage'
|
||||||
CHROMEVERSIONHISTORY_URL = 'https://versionhistory.googleapis.com/v1/chrome/platforms'
|
CHROMEVERSIONHISTORY_URL = 'https://versionhistory.googleapis.com/v1/chrome/platforms'
|
||||||
DRIVE_SCOPE = 'https://www.googleapis.com/auth/drive'
|
DRIVE_SCOPE = 'https://www.googleapis.com/auth/drive'
|
||||||
GMAIL_SEND_SCOPE = 'https://www.googleapis.com/auth/gmail.send'
|
GMAIL_SEND_SCOPE = 'https://www.googleapis.com/auth/gmail.send'
|
||||||
@@ -173,6 +176,7 @@ PROJECT_APIS = [
|
|||||||
'alertcenter.googleapis.com',
|
'alertcenter.googleapis.com',
|
||||||
'analyticsadmin.googleapis.com',
|
'analyticsadmin.googleapis.com',
|
||||||
# 'audit.googleapis.com',
|
# 'audit.googleapis.com',
|
||||||
|
'mybusinessaccountmanagement.googleapis.com',
|
||||||
'calendar-json.googleapis.com',
|
'calendar-json.googleapis.com',
|
||||||
'chat.googleapis.com',
|
'chat.googleapis.com',
|
||||||
'chromemanagement.googleapis.com',
|
'chromemanagement.googleapis.com',
|
||||||
@@ -198,6 +202,7 @@ PROJECT_APIS = [
|
|||||||
'people.googleapis.com',
|
'people.googleapis.com',
|
||||||
'pubsub.googleapis.com',
|
'pubsub.googleapis.com',
|
||||||
'reseller.googleapis.com',
|
'reseller.googleapis.com',
|
||||||
|
'searchconsole.googleapis.com',
|
||||||
'sheets.googleapis.com',
|
'sheets.googleapis.com',
|
||||||
'siteverification.googleapis.com',
|
'siteverification.googleapis.com',
|
||||||
'storage-api.googleapis.com',
|
'storage-api.googleapis.com',
|
||||||
@@ -211,6 +216,7 @@ _INFO = {
|
|||||||
ACCESSCONTEXTMANAGER: {'name': 'Access Context Manager API', 'version': 'v1', 'v2discovery': True},
|
ACCESSCONTEXTMANAGER: {'name': 'Access Context Manager API', 'version': 'v1', 'v2discovery': True},
|
||||||
ALERTCENTER: {'name': 'AlertCenter API', 'version': 'v1beta1', 'v2discovery': True},
|
ALERTCENTER: {'name': 'AlertCenter API', 'version': 'v1beta1', 'v2discovery': True},
|
||||||
ANALYTICS_ADMIN: {'name': 'Analytics Admin API', 'version': 'v1beta', 'v2discovery': True},
|
ANALYTICS_ADMIN: {'name': 'Analytics Admin API', 'version': 'v1beta', 'v2discovery': True},
|
||||||
|
BUSINESSACCOUNTMANAGEMENT: {'name': 'Business Account Management API', 'version': 'v1', 'v2discovery': True},
|
||||||
CALENDAR: {'name': 'Calendar API', 'version': 'v3', 'v2discovery': True, 'mappedAPI': 'calendar-json'},
|
CALENDAR: {'name': 'Calendar API', 'version': 'v3', 'v2discovery': True, 'mappedAPI': 'calendar-json'},
|
||||||
CBCM: {'name': 'Chrome Browser Cloud Management API', 'version': 'v1.1beta1', 'v2discovery': True, 'localjson': True},
|
CBCM: {'name': 'Chrome Browser Cloud Management API', 'version': 'v1.1beta1', 'v2discovery': True, 'localjson': True},
|
||||||
CHAT: {'name': 'Chat API', 'version': 'v1', 'v2discovery': True},
|
CHAT: {'name': 'Chat API', 'version': 'v1', 'v2discovery': True},
|
||||||
@@ -271,6 +277,7 @@ _INFO = {
|
|||||||
PUBSUB: {'name': 'Pub / Sub API', 'version': 'v1', 'v2discovery': True},
|
PUBSUB: {'name': 'Pub / Sub API', 'version': 'v1', 'v2discovery': True},
|
||||||
REPORTS: {'name': 'Reports API', 'version': 'reports_v1', 'v2discovery': True, 'mappedAPI': 'admin'},
|
REPORTS: {'name': 'Reports API', 'version': 'reports_v1', 'v2discovery': True, 'mappedAPI': 'admin'},
|
||||||
RESELLER: {'name': 'Reseller API', 'version': 'v1', 'v2discovery': True},
|
RESELLER: {'name': 'Reseller API', 'version': 'v1', 'v2discovery': True},
|
||||||
|
SEARCHCONSOLE: {'name': 'Search Console API', 'version': 'v1', 'v2discovery': True},
|
||||||
SERVICEACCOUNTLOOKUP: {'name': 'Service Account Lookup pseudo-API', 'version': 'v1', 'v2discovery': True, 'localjson': True},
|
SERVICEACCOUNTLOOKUP: {'name': 'Service Account Lookup pseudo-API', 'version': 'v1', 'v2discovery': True, 'localjson': True},
|
||||||
SERVICEMANAGEMENT: {'name': 'Service Management API', 'version': 'v1', 'v2discovery': True},
|
SERVICEMANAGEMENT: {'name': 'Service Management API', 'version': 'v1', 'v2discovery': True},
|
||||||
SERVICEUSAGE: {'name': 'Service Usage API', 'version': 'v1', 'v2discovery': True},
|
SERVICEUSAGE: {'name': 'Service Usage API', 'version': 'v1', 'v2discovery': True},
|
||||||
@@ -290,6 +297,11 @@ _INFO = {
|
|||||||
READONLY = ['readonly',]
|
READONLY = ['readonly',]
|
||||||
|
|
||||||
_CLIENT_SCOPES = [
|
_CLIENT_SCOPES = [
|
||||||
|
{'name': 'Business Account Management API',
|
||||||
|
'api': BUSINESSACCOUNTMANAGEMENT,
|
||||||
|
'subscopes': [],
|
||||||
|
'offByDefault': True,
|
||||||
|
'scope': BUSINESSACCOUNTMANAGEMENT_SCOPE},
|
||||||
{'name': 'Calendar API',
|
{'name': 'Calendar API',
|
||||||
'api': CALENDAR,
|
'api': CALENDAR,
|
||||||
'subscopes': READONLY,
|
'subscopes': READONLY,
|
||||||
@@ -697,10 +709,20 @@ _SVCACCT_SCOPES = [
|
|||||||
'api': PEOPLE_OTHERCONTACTS,
|
'api': PEOPLE_OTHERCONTACTS,
|
||||||
'subscopes': [],
|
'subscopes': [],
|
||||||
'scope': 'https://www.googleapis.com/auth/contacts.other.readonly'},
|
'scope': 'https://www.googleapis.com/auth/contacts.other.readonly'},
|
||||||
|
{'name': 'Search Console API - read only',
|
||||||
|
'api': SEARCHCONSOLE,
|
||||||
|
'subscopes': [],
|
||||||
|
'offByDefault': True,
|
||||||
|
'scope': 'https://www.googleapis.com/auth/webmasters.readonly'},
|
||||||
{'name': 'Sheets API',
|
{'name': 'Sheets API',
|
||||||
'api': SHEETS,
|
'api': SHEETS,
|
||||||
'subscopes': READONLY,
|
'subscopes': READONLY,
|
||||||
'scope': 'https://www.googleapis.com/auth/spreadsheets'},
|
'scope': 'https://www.googleapis.com/auth/spreadsheets'},
|
||||||
|
{'name': 'Site Verification API',
|
||||||
|
'api': SITEVERIFICATION,
|
||||||
|
'subscopes': [],
|
||||||
|
'offByDefault': True,
|
||||||
|
'scope': 'https://www.googleapis.com/auth/siteverification'},
|
||||||
{'name': 'Tag Manager API - Accounts, Containers, Workspaces, Tags - read only',
|
{'name': 'Tag Manager API - Accounts, Containers, Workspaces, Tags - read only',
|
||||||
'api': TAGMANAGER,
|
'api': TAGMANAGER,
|
||||||
'subscopes': [],
|
'subscopes': [],
|
||||||
@@ -750,56 +772,6 @@ _USER_SVCACCT_ONLY_SCOPES = [
|
|||||||
'scope': 'https://www.googleapis.com/auth/apps.groups.migration'},
|
'scope': 'https://www.googleapis.com/auth/apps.groups.migration'},
|
||||||
]
|
]
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_ABOUT_FIELDS_MAP = {
|
|
||||||
'displayName': 'name',
|
|
||||||
'limit': 'quotaBytesTotal',
|
|
||||||
'usage': 'quotaBytesUsedAggregate',
|
|
||||||
'usageInDrive': 'quotaBytesUsed',
|
|
||||||
'usageInDriveTrash': 'quotaBytesUsedInTrash',
|
|
||||||
}
|
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_CAPABILITIES_FIELDS_MAP = {
|
|
||||||
'canComment': 'canComment',
|
|
||||||
'canReadRevisions': 'canReadRevisions',
|
|
||||||
'canCopy': 'copyable',
|
|
||||||
'canEdit': 'editable',
|
|
||||||
'canShare': 'shareable',
|
|
||||||
}
|
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_CAPABILITIES_NAMES_MAP = {
|
|
||||||
'canChangeViewersCanCopyContent': 'canChangeRestrictedDownload',
|
|
||||||
}
|
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_FILES_FIELDS_MAP = {
|
|
||||||
'allowFileDiscovery': 'withLink',
|
|
||||||
'createdTime': 'createdDate',
|
|
||||||
'expirationTime': 'expirationDate',
|
|
||||||
'modifiedByMe': 'modified',
|
|
||||||
'modifiedByMeTime': 'modifiedByMeDate',
|
|
||||||
'modifiedTime': 'modifiedDate',
|
|
||||||
'name': 'title',
|
|
||||||
'restrictionTime': 'restrictionDate',
|
|
||||||
'sharedWithMeTime': 'sharedWithMeDate',
|
|
||||||
'size': 'fileSize',
|
|
||||||
'trashedTime': 'trashedDate',
|
|
||||||
'viewedByMe': 'viewed',
|
|
||||||
'viewedByMeTime': 'lastViewedByMeDate',
|
|
||||||
'webViewLink': 'alternateLink',
|
|
||||||
}
|
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_LABELS_MAP = {
|
|
||||||
'modifiedByMe': 'modified',
|
|
||||||
'starred': 'starred',
|
|
||||||
'trashed': 'trashed',
|
|
||||||
'viewedByMe': 'viewed',
|
|
||||||
}
|
|
||||||
|
|
||||||
DRIVE3_TO_DRIVE2_REVISIONS_FIELDS_MAP = {
|
|
||||||
'modifiedTime': 'modifiedDate',
|
|
||||||
'keepForever': 'pinned',
|
|
||||||
'size': 'fileSize',
|
|
||||||
}
|
|
||||||
|
|
||||||
def getAPIName(api):
|
def getAPIName(api):
|
||||||
return _INFO[api]['name']
|
return _INFO[api]['name']
|
||||||
|
|
||||||
|
|||||||
@@ -155,8 +155,6 @@ DRIVE_DIR = 'drive_dir'
|
|||||||
DRIVE_MAX_RESULTS = 'drive_max_results'
|
DRIVE_MAX_RESULTS = 'drive_max_results'
|
||||||
# Use Drive V3 beta
|
# Use Drive V3 beta
|
||||||
DRIVE_V3_BETA = 'drive_v3_beta'
|
DRIVE_V3_BETA = 'drive_v3_beta'
|
||||||
# Use Drive V3 ntive names
|
|
||||||
DRIVE_V3_NATIVE_NAMES = 'drive_v3_native_names'
|
|
||||||
# When processing email messages in batches, how many should be processed in each batch
|
# When processing email messages in batches, how many should be processed in each batch
|
||||||
EMAIL_BATCH_SIZE = 'email_batch_size'
|
EMAIL_BATCH_SIZE = 'email_batch_size'
|
||||||
# Enable Delegated Admin Service Account
|
# Enable Delegated Admin Service Account
|
||||||
@@ -382,7 +380,6 @@ Defaults = {
|
|||||||
ENFORCE_EXPANSIVE_ACCESS: TRUE,
|
ENFORCE_EXPANSIVE_ACCESS: TRUE,
|
||||||
DRIVE_MAX_RESULTS: '1000',
|
DRIVE_MAX_RESULTS: '1000',
|
||||||
DRIVE_V3_BETA: FALSE,
|
DRIVE_V3_BETA: FALSE,
|
||||||
DRIVE_V3_NATIVE_NAMES: TRUE,
|
|
||||||
EMAIL_BATCH_SIZE: '50',
|
EMAIL_BATCH_SIZE: '50',
|
||||||
ENABLE_DASA: FALSE,
|
ENABLE_DASA: FALSE,
|
||||||
ENABLE_GCLOUD_REAUTH: FALSE,
|
ENABLE_GCLOUD_REAUTH: FALSE,
|
||||||
@@ -551,7 +548,6 @@ VAR_INFO = {
|
|||||||
ENFORCE_EXPANSIVE_ACCESS: {VAR_TYPE: TYPE_BOOLEAN},
|
ENFORCE_EXPANSIVE_ACCESS: {VAR_TYPE: TYPE_BOOLEAN},
|
||||||
DRIVE_MAX_RESULTS: {VAR_TYPE: TYPE_INTEGER, VAR_LIMITS: (1, 1000)},
|
DRIVE_MAX_RESULTS: {VAR_TYPE: TYPE_INTEGER, VAR_LIMITS: (1, 1000)},
|
||||||
DRIVE_V3_BETA: {VAR_TYPE: TYPE_BOOLEAN},
|
DRIVE_V3_BETA: {VAR_TYPE: TYPE_BOOLEAN},
|
||||||
DRIVE_V3_NATIVE_NAMES: {VAR_TYPE: TYPE_BOOLEAN},
|
|
||||||
EMAIL_BATCH_SIZE: {VAR_TYPE: TYPE_INTEGER, VAR_LIMITS: (1, 100)},
|
EMAIL_BATCH_SIZE: {VAR_TYPE: TYPE_INTEGER, VAR_LIMITS: (1, 100)},
|
||||||
ENABLE_DASA: {VAR_TYPE: TYPE_BOOLEAN, VAR_SIGFILE: 'enabledasa.txt', VAR_SFFT: (FALSE, TRUE)},
|
ENABLE_DASA: {VAR_TYPE: TYPE_BOOLEAN, VAR_SIGFILE: 'enabledasa.txt', VAR_SFFT: (FALSE, TRUE)},
|
||||||
ENABLE_GCLOUD_REAUTH: {VAR_TYPE: TYPE_BOOLEAN},
|
ENABLE_GCLOUD_REAUTH: {VAR_TYPE: TYPE_BOOLEAN},
|
||||||
|
|||||||
@@ -441,6 +441,8 @@ class GamCLArgs():
|
|||||||
ARG_BUCKETS = 'buckets'
|
ARG_BUCKETS = 'buckets'
|
||||||
ARG_BUILDING = 'building'
|
ARG_BUILDING = 'building'
|
||||||
ARG_BUILDINGS = 'buildings'
|
ARG_BUILDINGS = 'buildings'
|
||||||
|
ARG_BUSINESSPROFILEACCOUNT = 'businessprofileaccount'
|
||||||
|
ARG_BUSINESSPROFILEACCOUNTS = 'businessprofileaccounts'
|
||||||
ARG_CAALEVEL = 'caalevel'
|
ARG_CAALEVEL = 'caalevel'
|
||||||
ARG_CAALEVELS = 'caalevels'
|
ARG_CAALEVELS = 'caalevels'
|
||||||
ARG_CALATTENDEES = 'calattendees'
|
ARG_CALATTENDEES = 'calattendees'
|
||||||
@@ -830,6 +832,10 @@ class GamCLArgs():
|
|||||||
ARG_VERIFICATION = 'verification'
|
ARG_VERIFICATION = 'verification'
|
||||||
ARG_VERIFICATIONCODES = 'verificationcodes'
|
ARG_VERIFICATIONCODES = 'verificationcodes'
|
||||||
ARG_VERIFY = 'verify'
|
ARG_VERIFY = 'verify'
|
||||||
|
ARG_WEBMASTERSITE = 'webmastersite'
|
||||||
|
ARG_WEBMASTERSITES = 'webmastersites'
|
||||||
|
ARG_WEBRESOURCE = 'webresource'
|
||||||
|
ARG_WEBRESOURCES = 'webresources'
|
||||||
ARG_WORKINGLOCATION = 'workinglocation'
|
ARG_WORKINGLOCATION = 'workinglocation'
|
||||||
ARG_WORKINGLOCATIONS = 'workinglocations'
|
ARG_WORKINGLOCATIONS = 'workinglocations'
|
||||||
ARG_YOUTUBECHANNEL = 'youtubechannel'
|
ARG_YOUTUBECHANNEL = 'youtubechannel'
|
||||||
|
|||||||
@@ -75,6 +75,7 @@ class GamEntity():
|
|||||||
BACKUP_VERIFICATION_CODES = 'buvc'
|
BACKUP_VERIFICATION_CODES = 'buvc'
|
||||||
BUILDING = 'bldg'
|
BUILDING = 'bldg'
|
||||||
BUILDING_ID = 'bldi'
|
BUILDING_ID = 'bldi'
|
||||||
|
BUSINESS_PROFILE_ACCOUNT = 'bpac'
|
||||||
CAA_LEVEL = 'calv'
|
CAA_LEVEL = 'calv'
|
||||||
CALENDAR = 'cale'
|
CALENDAR = 'cale'
|
||||||
CALENDAR_ACL = 'cacl'
|
CALENDAR_ACL = 'cacl'
|
||||||
@@ -394,6 +395,8 @@ class GamEntity():
|
|||||||
VAULT_MATTER_ID = 'vlmi'
|
VAULT_MATTER_ID = 'vlmi'
|
||||||
VAULT_OPERATION = 'vlto'
|
VAULT_OPERATION = 'vlto'
|
||||||
VAULT_QUERY = 'vltq'
|
VAULT_QUERY = 'vltq'
|
||||||
|
WEB_MASTERSITE = 'wems'
|
||||||
|
WEB_RESOURCE = 'were'
|
||||||
WEBCLIPS_ENABLED = 'webc'
|
WEBCLIPS_ENABLED = 'webc'
|
||||||
YOUTUBE_CHANNEL = 'ytch'
|
YOUTUBE_CHANNEL = 'ytch'
|
||||||
# _NAMES[0] is plural, _NAMES[1] is singular unless the item name is explicitly plural (Calendar Settings)
|
# _NAMES[0] is plural, _NAMES[1] is singular unless the item name is explicitly plural (Calendar Settings)
|
||||||
@@ -432,6 +435,7 @@ class GamEntity():
|
|||||||
BACKUP_VERIFICATION_CODES: ['Backup Verification Codes', 'Backup Verification Codes'],
|
BACKUP_VERIFICATION_CODES: ['Backup Verification Codes', 'Backup Verification Codes'],
|
||||||
BUILDING: ['Buildings', 'Building'],
|
BUILDING: ['Buildings', 'Building'],
|
||||||
BUILDING_ID: ['Building IDs', 'Building ID'],
|
BUILDING_ID: ['Building IDs', 'Building ID'],
|
||||||
|
BUSINESS_PROFILE_ACCOUNT: ['Business Profile Accounts', 'Business Profile Account'],
|
||||||
CAA_LEVEL: ['CAA Levels', 'CAA Level'],
|
CAA_LEVEL: ['CAA Levels', 'CAA Level'],
|
||||||
CALENDAR: ['Calendars', 'Calendar'],
|
CALENDAR: ['Calendars', 'Calendar'],
|
||||||
CALENDAR_ACL: ['Calendar ACLs', 'Calendar ACL'],
|
CALENDAR_ACL: ['Calendar ACLs', 'Calendar ACL'],
|
||||||
@@ -752,6 +756,8 @@ class GamEntity():
|
|||||||
VAULT_OPERATION: ['Vault Operations', 'Vault Operation'],
|
VAULT_OPERATION: ['Vault Operations', 'Vault Operation'],
|
||||||
VAULT_QUERY: ['Vault Queries', 'Vault Query'],
|
VAULT_QUERY: ['Vault Queries', 'Vault Query'],
|
||||||
WEBCLIPS_ENABLED: ['Web Clips Enabled', 'Web Clips Enabled'],
|
WEBCLIPS_ENABLED: ['Web Clips Enabled', 'Web Clips Enabled'],
|
||||||
|
WEB_MASTERSITE: ['Web Master Sites', 'Web Master Site'],
|
||||||
|
WEB_RESOURCE: ['Web Resources', 'Web Resource'],
|
||||||
YOUTUBE_CHANNEL: ['YouTube Channels', 'YouTube Channel'],
|
YOUTUBE_CHANNEL: ['YouTube Channels', 'YouTube Channel'],
|
||||||
ROLE_MANAGER: ['Managers', 'Manager'],
|
ROLE_MANAGER: ['Managers', 'Manager'],
|
||||||
ROLE_MEMBER: ['Members', 'Member'],
|
ROLE_MEMBER: ['Members', 'Member'],
|
||||||
|
|||||||
@@ -1,15 +1,13 @@
|
|||||||
!All Google Drive API calls have been converted from v2 to v3, see: https://developers.google.com/drive/v3/web/migration
|
Legacy GAM used Drive API v2, GAM7 uses Drive API v3. See: https://developers.google.com/drive/v3/web/migration
|
||||||
Many of the changes are internal to Gam and have no visible effect. Google has modified/renamed many field names and these will affect scripts that parse the output from `gam print/show drivesettings/drivefileacls/fileinfo/filelist/filerevisions`. Additionally, Google has dropped some fields and their values are no longer available. On input, Gam accepts both the old and new field names.
|
Many of the changes are internal to GAM7 and have no visible effect.
|
||||||
|
Google has modified/renamed many field names and these will affect scripts that parse the output from `gam print/show drivesettings/drivefileacls/fileinfo/filelist/filerevisions`.
|
||||||
|
Additionally, Google has dropped some fields and their values are no longer available. On input, GAM7 accepts both the old and new field names where applicable.
|
||||||
|
|
||||||
A variable, `drive_v3_native_names` (default value is True), has been added to `gam.cfg` to control the field names on output: when True, the v3 native field names are used; when False, the v3 native field names are mapped to the v2 field names.
|
If you use Legacy GAM and have scripts that process the output from these print commands, you may have to make modifications to your scripts when you upgrade to GAM7.
|
||||||
|
Run your print/show commands with a version of Legacy GAM and save the output.
|
||||||
If you have scripts that process the output from these print commands, you may have to make modifications to your scripts.
|
Run your print/show commands with GAM7 and compare the output to that saved in the previous run;
|
||||||
Run your print/show commands with a version of Legacy Gam and save the output.
|
|
||||||
With drive_v3_native_names = False, run your print/show commands with this version of Gam and compare the output to that saved in the previous run;
|
|
||||||
modify your scripts that process the output as appropriate.
|
modify your scripts that process the output as appropriate.
|
||||||
|
|
||||||
There is a cost to mapping the v3 field names back to the v2 field names; you can avoid this cost by setting drive_v3_native_names = True,
|
|
||||||
running your print/show commands, comparing the output and making the appropriate script modifications.
|
|
||||||
```
|
```
|
||||||
print/show drivesettings
|
print/show drivesettings
|
||||||
Dropped fields:
|
Dropped fields:
|
||||||
@@ -30,7 +28,7 @@ Dropped fields:
|
|||||||
authKey
|
authKey
|
||||||
Renamed fields (Old->New):
|
Renamed fields (Old->New):
|
||||||
name->displayName
|
name->displayName
|
||||||
withLink->allowFileDiscovery
|
withLink->allowFileDiscovery - value is complemented
|
||||||
|
|
||||||
print/show fileinfo/filelist
|
print/show fileinfo/filelist
|
||||||
Dropped fields:
|
Dropped fields:
|
||||||
@@ -40,19 +38,20 @@ Dropped fields:
|
|||||||
labels(hidden)
|
labels(hidden)
|
||||||
markedViewedByMeDate
|
markedViewedByMeDate
|
||||||
openWithLinks
|
openWithLinks
|
||||||
selfLink
|
ownerNames
|
||||||
parents(isRoot)
|
parents(isRoot)
|
||||||
parents(parentLink)
|
parents(parentLink)
|
||||||
parents(selfLink)
|
parents(selfLink)
|
||||||
permissions(selfLink)
|
permissions(selfLink)
|
||||||
selfLink
|
selfLink
|
||||||
userPermission(selfLink)
|
userPermission
|
||||||
Renamed fields (Old->New):
|
Renamed fields (Old->New):
|
||||||
alternateLink->webViewLink
|
alternateLink->webViewLink
|
||||||
capabilities(canChangeRestrictedDownload)->capabilities(canChangeViewersCanCopyContent)
|
capabilities(canChangeRestrictedDownload)->capabilities(canChangeViewersCanCopyContent)
|
||||||
createdDate->createdTime
|
createdDate->createdTime
|
||||||
expirationDate->expirationTime
|
expirationDate->expirationTime
|
||||||
fileSize->size
|
fileSize->size
|
||||||
|
lastModifyingUserName->lastModifyingUser(displayName)
|
||||||
lastViewedByMeDate->viewedByMeTime
|
lastViewedByMeDate->viewedByMeTime
|
||||||
modified->modifiedByMe
|
modified->modifiedByMe
|
||||||
modifiedByMeDate->modifiedByMeTime
|
modifiedByMeDate->modifiedByMeTime
|
||||||
@@ -76,18 +75,3 @@ Renamed fields (Old->New):
|
|||||||
picture.url->photoLink
|
picture.url->photoLink
|
||||||
pinned->keepForever
|
pinned->keepForever
|
||||||
```
|
```
|
||||||
The parents field of a file has undergone the most change. In Drive v2 it was a list of compound items with three sub-fields per item: id, isRoot, parentLink.
|
|
||||||
In Drive v3 the parents field is a list of simple items, the parent ids. The following examples show how the parents field is output in a CSV file for a file with two parents.
|
|
||||||
```
|
|
||||||
Previous versions of Gam:
|
|
||||||
Owner,title,parents,parents.0.isRoot,parents.0.id,parents.0.parentLink,parents.1.isRoot,parents.1.id,parents.1.parentLink
|
|
||||||
testuser@domain.com,TestFile,2,True,PPPP1111,https://www.googleapis.com/drive/v2/files/PPPP1111,False,PPPP2222,https://www.googleapis.com/drive/v2/files/PPPP2222
|
|
||||||
|
|
||||||
Current version of Gam with drive_v3_name_names = false
|
|
||||||
Owner,title,parents,parents.0.id,parents.1.id
|
|
||||||
testuser@domain.com,TestFile,2,PPPP1111,PPPP2222
|
|
||||||
|
|
||||||
Current version of Gam with drive_v3_name_names = true
|
|
||||||
Owner,name,parents
|
|
||||||
testuser@domain.com,TestFile,PPPP1111 PPPP2222
|
|
||||||
```
|
|
||||||
|
|||||||
@@ -10,6 +10,93 @@ 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.17.03
|
||||||
|
|
||||||
|
Fixed bug in `gam <UserItem> print|show chatspaces asadmin fields <ChatSpaceFieldNameList>` that caused a trap
|
||||||
|
when `displayname` was not in `<ChatSpaceFieldNameList>`.
|
||||||
|
|
||||||
|
### 7.17.02
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> print|show webmastersites` to handle the following error
|
||||||
|
that occurs if you haven't updated your project to include the Google Search Console API.
|
||||||
|
```
|
||||||
|
ERROR: 403: permissionDenied - Google Search Console API has not been used in project 111055363999 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/searchconsole.googleapis.com/overview?project=111055363999 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.
|
||||||
|
```
|
||||||
|
|
||||||
|
### 7.17.01
|
||||||
|
|
||||||
|
Fixed bug in `gam <UserTypeEntity> show webmastersites` that caused a trap.
|
||||||
|
|
||||||
|
### 7.17.00
|
||||||
|
|
||||||
|
Added commands to discover Sites and WebResources that managed users (previously unmanaged) may have access to for better governance and visibility.
|
||||||
|
These are special purpose commands and will not generally be used.
|
||||||
|
```
|
||||||
|
gam <UserTypeEntity> show webresources
|
||||||
|
gam <UserTypeEntity> print webresources [todrive <ToDriveAttribute>*]
|
||||||
|
gam <UserTypeEntity> show webmastersites
|
||||||
|
gam <UserTypeEntity> print webmastersites [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
|
||||||
|
### 7.16.01
|
||||||
|
|
||||||
|
The Drive API now supports setting download restrictions on individual files.
|
||||||
|
|
||||||
|
Added `downloadrestictions` and `<DriveDownloadRestrictionsSubfieldName>` to `<DriveFieldName>`.
|
||||||
|
```
|
||||||
|
<DriveDownloadRestrictionsSubfieldName> ::=
|
||||||
|
downloadrestrictions.itemdownloadrestriction|
|
||||||
|
downloadrestrictions.effectivedownloadrestrictionwithcontext
|
||||||
|
```
|
||||||
|
|
||||||
|
Added `itemdownloadrestriction (restrictedforreaders [<Boolean>]) (restrictedforwriters [<Boolean>])`
|
||||||
|
to `<DriveFileAttribute>`.
|
||||||
|
|
||||||
|
From the Drive API documentation:
|
||||||
|
```
|
||||||
|
itemDownloadRestriction - The download restriction of the file applied directly by the owner or organizer. This does not take into account shared drive settings or DLP rules.
|
||||||
|
effectiveDownloadRestrictionWithContext - Output only. The effective download restriction applied to this file. This considers all restriction settings and DLP rules.
|
||||||
|
restrictedForReaders - Whether download and copy is restricted for readers.
|
||||||
|
restrictedForWriters - Whether download and copy is restricted for writers. If true, download is also restricted for readers.
|
||||||
|
```
|
||||||
|
|
||||||
|
### 7.16.00
|
||||||
|
|
||||||
|
Removed `drive_v3_native_names` from `gam.cfg`; GAM now only uses Drive API v3 fields names on output.
|
||||||
|
If you had `drive_v3_native_names = False` in `gam.cfg` or are updating from Legacy GAM:
|
||||||
|
|
||||||
|
* See: https://github.com/GAM-team/GAM/wiki/Drive-REST-API-v3
|
||||||
|
|
||||||
|
### 7.15.01
|
||||||
|
|
||||||
|
Added `downloadrestrictions.restrictedforreaders` and `downloadrestrictions.restrictedforwriters`
|
||||||
|
to `<SharedDriveRestrictionsSubfieldName>`; previously, only the abbreviations `downloadrestrictedforreaders`
|
||||||
|
and `downloadrestrictedforwriters` were supported (they are still supported).
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> copy drivefile` to handle unexpected data returned by Google that caused a trap.
|
||||||
|
|
||||||
|
### 7.15.00
|
||||||
|
|
||||||
|
Updated `gam print shareddriveorganizers` to make `shownoorganizerdrives` default to `True`
|
||||||
|
as documented; it was defaulting to `False`.
|
||||||
|
|
||||||
|
Cleaned up code for processing Python dictionary structures; this should have no noticable effect.
|
||||||
|
|
||||||
|
### 7.14.04
|
||||||
|
|
||||||
|
Fixed bug in `gam print|show cigroups cimember <UserItem>` that generated the following error:
|
||||||
|
```
|
||||||
|
ERROR: Cloud Identity Group: groups/-, Print Failed: Error(4013): Insufficient permissions to retrieve memberships.
|
||||||
|
```
|
||||||
|
|
||||||
|
Updated `gam <UserTypeEntity> update user suspended off` and `gam <UserTypeEntity> unsuspend users`
|
||||||
|
to handle the following error that occurs when trying to unsuspend a user that has been suspended for abuse.
|
||||||
|
```
|
||||||
|
ERROR: 412: adminCannotUnsuspend - Cannot restore a user suspended for abuse.
|
||||||
|
```
|
||||||
|
|
||||||
|
* See: https://support.google.com/a/answer/1110339
|
||||||
|
|
||||||
### 7.14.03
|
### 7.14.03
|
||||||
|
|
||||||
Fixed bug in `gam print cigroup-members includederivedmembership` that caused a trap.
|
Fixed bug in `gam print cigroup-members includederivedmembership` that caused a trap.
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
Use these steps if you have used any version of GAM in your domain. They will update your GAM project
|
Use these steps if you have used any version of GAM in your domain. They will update your GAM project
|
||||||
and all necessary authentications.
|
and all necessary authentications.
|
||||||
|
|
||||||
|
- [Drive API v2 to Drive API v3](Drive-REST-v3)
|
||||||
- [Downloads-Installs](Downloads-Installs)
|
- [Downloads-Installs](Downloads-Installs)
|
||||||
- [Linux and MacOS and Google Cloud Shell](#linux-and-mac-os-and-google-cloud-shell)
|
- [Linux and MacOS and Google Cloud Shell](#linux-and-mac-os-and-google-cloud-shell)
|
||||||
- [Windows](#windows)
|
- [Windows](#windows)
|
||||||
@@ -251,7 +252,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.14.03 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.17.03 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -989,7 +990,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.14.03 - https://github.com/GAM-team/GAM - pythonsource
|
GAM 7.17.03 - https://github.com/GAM-team/GAM - pythonsource
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
Windows-10-10.0.17134 AMD64
|
Windows-10-10.0.17134 AMD64
|
||||||
|
|||||||
@@ -203,8 +203,8 @@
|
|||||||
allowcontentmanagerstosharefolders|
|
allowcontentmanagerstosharefolders|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
domainusersonly|
|
domainusersonly|
|
||||||
downloadrestrictedforreaders|
|
downloadrestrictedforreaders|downloadrestrictions.restrictedforreaders|
|
||||||
downloadrestrictedforwriters|
|
downloadrestrictedforwriters|downloadrestrictions.restrictedforwriters|
|
||||||
drivemembersonly|teammembersonly|
|
drivemembersonly|teammembersonly|
|
||||||
sharingfoldersrequiresorganizerpermission
|
sharingfoldersrequiresorganizerpermission
|
||||||
|
|
||||||
@@ -247,7 +247,7 @@ The user that creates a Shared Drive is given the permission role organizer for
|
|||||||
gam [<UserTypeEntity>] create shareddrive <Name>
|
gam [<UserTypeEntity>] create shareddrive <Name>
|
||||||
[(theme|themeid <String>)|
|
[(theme|themeid <String>)|
|
||||||
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
||||||
@@ -259,7 +259,7 @@ gam [<UserTypeEntity>] create shareddrive <Name>
|
|||||||
* `<Float>` - Y coordinate, typically 0.0
|
* `<Float>` - Y coordinate, typically 0.0
|
||||||
* `<Float>` - width, typically 1.0
|
* `<Float>` - width, typically 1.0
|
||||||
* `color` - set the Shared Drive color
|
* `color` - set the Shared Drive color
|
||||||
* `<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
* `[restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
||||||
* `hide <Boolean>` - Set Shared Drive visibility
|
* `hide <Boolean>` - Set Shared Drive visibility
|
||||||
|
|
||||||
If any attributes other than `themeid` are specified, GAM must create the Drive and then update the Drive attributes.
|
If any attributes other than `themeid` are specified, GAM must create the Drive and then update the Drive attributes.
|
||||||
@@ -333,13 +333,13 @@ gam [<UserTypeEntity>] update shareddrive <SharedDriveEntity> [name <Name>]
|
|||||||
[adminaccess|asadmin]
|
[adminaccess|asadmin]
|
||||||
[(theme|themeid <String>)|
|
[(theme|themeid <String>)|
|
||||||
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
```
|
```
|
||||||
* `themeid` - a Shared Drive themeId obtained from `show shareddrivethemes`
|
* `themeid` - a Shared Drive themeId obtained from `show shareddrivethemes`
|
||||||
* `customtheme` - set the backgroundImageFile property described here: https://developers.google.com/drive/v3/reference/teamdrives
|
* `customtheme` - set the backgroundImageFile property described here: https://developers.google.com/drive/v3/reference/teamdrives
|
||||||
* `color` - set the Shared Drive color
|
* `color` - set the Shared Drive color
|
||||||
* `<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
* `[restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
||||||
* `hidden <Boolean>` - Set Shared Drive visibility
|
* `hidden <Boolean>` - Set Shared Drive visibility
|
||||||
|
|
||||||
* `ou|org|orgunit <OrgUnitItem>` - See: https://workspaceupdates.googleblog.com/2022/05/shared-drives-in-organizational-units-open-beta.html
|
* `ou|org|orgunit <OrgUnitItem>` - See: https://workspaceupdates.googleblog.com/2022/05/shared-drives-in-organizational-units-open-beta.html
|
||||||
|
|||||||
@@ -157,12 +157,16 @@
|
|||||||
contentrestrictions.restrictiontime|
|
contentrestrictions.restrictiontime|
|
||||||
contentrestrictions.type
|
contentrestrictions.type
|
||||||
|
|
||||||
<DriveLabelInfoSubfieldName> ::=
|
<DriveDownloadRestrictionsSubfieldName> ::=
|
||||||
|
downloadrestrictions.itemdownloadrestriction|
|
||||||
|
downloadrestrictions.effectivedownloadrestrictionwithcontext
|
||||||
|
|
||||||
|
<ClassificationLabelInfoSubfieldName> ::=
|
||||||
labels.id| # modifiedByMe
|
labels.id| # modifiedByMe
|
||||||
labels.revisionid| # copyRequiresWriterPermission
|
labels.revisionid| # copyRequiresWriterPermission
|
||||||
labels.fields # viewedByMe
|
labels.fields # viewedByMe
|
||||||
|
|
||||||
<DriveLabelsSubfieldName> ::=
|
<ClassificationLabelsSubfieldName~> ::=
|
||||||
labels.modified| # modifiedByMe
|
labels.modified| # modifiedByMe
|
||||||
labels.restricted| # copyRequiresWriterPermission
|
labels.restricted| # copyRequiresWriterPermission
|
||||||
labels.starred| # starred
|
labels.starred| # starred
|
||||||
@@ -251,6 +255,8 @@
|
|||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
createddate|createdtime|
|
createddate|createdtime|
|
||||||
description|
|
description|
|
||||||
|
downloadrestictions|
|
||||||
|
<DriveDownloadRestrictionsSubfieldName>|
|
||||||
driveid|
|
driveid|
|
||||||
drivename|
|
drivename|
|
||||||
editable|
|
editable|
|
||||||
@@ -269,9 +275,9 @@
|
|||||||
inheritedpermissionsdisabled|
|
inheritedpermissionsdisabled|
|
||||||
isappauthorized|
|
isappauthorized|
|
||||||
labelinfo|
|
labelinfo|
|
||||||
<DriveLabelInfoSubfieldName>|
|
<ClassificationLabelInfoSubfieldName>|
|
||||||
labels|
|
labels|
|
||||||
<DriveLabelsSubfieldName>|
|
<ClassificationLabelsSubfieldName>|
|
||||||
lastmodifyinguser|
|
lastmodifyinguser|
|
||||||
<DriveLastModifyingUserSubfieldName>|
|
<DriveLastModifyingUserSubfieldName>|
|
||||||
lastmodifyingusername|
|
lastmodifyingusername|
|
||||||
|
|||||||
@@ -125,6 +125,7 @@
|
|||||||
(folderColorRgb <ColorValue>)|
|
(folderColorRgb <ColorValue>)|
|
||||||
(indexabletext <String>)|
|
(indexabletext <String>)|
|
||||||
(inheritedpermissionsdisabled [<Boolean>])|
|
(inheritedpermissionsdisabled [<Boolean>])|
|
||||||
|
(itemdownloadrestriction restrictedforreaders|restrictedforwriters [<Boolean>])|
|
||||||
(keeprevisionforever|pinned)|
|
(keeprevisionforever|pinned)|
|
||||||
(lastviewedbyme <Time>)|
|
(lastviewedbyme <Time>)|
|
||||||
(mimetype <MimeType>)|
|
(mimetype <MimeType>)|
|
||||||
|
|||||||
@@ -80,8 +80,8 @@ All `<FilterAction>s` except `forward <EmailAddress>` involve adding/removing la
|
|||||||
* `label <LabelName>` - Add the user label `<LabelName>`; only one user label can be specified. It will be created if necessary.
|
* `label <LabelName>` - Add the user label `<LabelName>`; only one user label can be specified. It will be created if necessary.
|
||||||
|
|
||||||
In Gmail, you can have a multi-level label like `Top/Middle/Bottom`; you can also have a single-level label like `Top/Middle/Bottom`,
|
In Gmail, you can have a multi-level label like `Top/Middle/Bottom`; you can also have a single-level label like `Top/Middle/Bottom`,
|
||||||
* If `buildpath` is omitted or `<Boolean>` is set to False, a <labelName>` containing `/` will be created as single-level.
|
* If `buildpath` is omitted or `<Boolean>` is set to False, a `<labelName>` containing `/` will be created as single-level.
|
||||||
* If `buildpath` is present and `<Boolean>` is omitted or set to True, a <labelName>` containing `/` will be created as multi-level;
|
* If `buildpath` is present and `<Boolean>` is omitted or set to True, a `<labelName>` containing `/` will be created as multi-level;
|
||||||
all parent labels are created as necessary.
|
all parent labels are created as necessary.
|
||||||
|
|
||||||
If `forward <EmailAddress>` is specified, the filter creation will fail if the user has not defined `<EmailAddress>` as a forwarding address.
|
If `forward <EmailAddress>` is specified, the filter creation will fail if the user has not defined `<EmailAddress>` as a forwarding address.
|
||||||
|
|||||||
@@ -181,8 +181,8 @@
|
|||||||
allowcontentmanagerstosharefolders|
|
allowcontentmanagerstosharefolders|
|
||||||
copyrequireswriterpermission|
|
copyrequireswriterpermission|
|
||||||
domainusersonly|
|
domainusersonly|
|
||||||
downloadrestrictedforreaders|
|
downloadrestrictedforreaders|downloadrestrictions.restrictedforreaders|
|
||||||
downloadrestrictedforwriters|
|
downloadrestrictedforwriters|downloadrestrictions.restrictedforwriters|
|
||||||
drivemembersonly|teammembersonly|
|
drivemembersonly|teammembersonly|
|
||||||
sharingfoldersrequiresorganizerpermission
|
sharingfoldersrequiresorganizerpermission
|
||||||
|
|
||||||
@@ -217,7 +217,7 @@ The user that creates a Shared Drive is given the permission role organizer for
|
|||||||
gam <UserTypeEntity> create shareddrive <Name>
|
gam <UserTypeEntity> create shareddrive <Name>
|
||||||
[(theme|themeid <String>)|
|
[(theme|themeid <String>)|
|
||||||
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
[errorretries <Integer>] [updateinitialdelay <Integer>] [updateretrydelay <Integer>]
|
||||||
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
[(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*) | returnidonly]
|
||||||
@@ -228,7 +228,7 @@ gam <UserTypeEntity> create shareddrive <Name>
|
|||||||
* `<Float>` - Y coordinate, typically 0.0
|
* `<Float>` - Y coordinate, typically 0.0
|
||||||
* `<Float>` - width, typically 1.0
|
* `<Float>` - width, typically 1.0
|
||||||
* `color` - set the Shared Drive color
|
* `color` - set the Shared Drive color
|
||||||
* `<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
* `[restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
||||||
* `hide <Boolean>` - Set Shared Drive visibility
|
* `hide <Boolean>` - Set Shared Drive visibility
|
||||||
|
|
||||||
If any attributes other than `themeid` are specified, GAM must create the Drive and then update the Drive attributes.
|
If any attributes other than `themeid` are specified, GAM must create the Drive and then update the Drive attributes.
|
||||||
@@ -284,13 +284,13 @@ This command is used to set basic Shared Drive settings.
|
|||||||
gam <UserTypeEntity> update shareddrive <SharedDriveEntity> [adminaccess|asadmin] [name <Name>]
|
gam <UserTypeEntity> update shareddrive <SharedDriveEntity> [adminaccess|asadmin] [name <Name>]
|
||||||
[(theme|themeid <String>)|
|
[(theme|themeid <String>)|
|
||||||
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
([customtheme <DriveFileID> <Float> <Float> <Float>] [color <ColorValue>])]
|
||||||
(<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
([restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>)*
|
||||||
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
[hide|hidden <Boolean>] [ou|org|orgunit <OrgUnitItem>]
|
||||||
```
|
```
|
||||||
* `themeid` - a Shared Drive themeId obtained from `show shareddrivethemes`
|
* `themeid` - a Shared Drive themeId obtained from `show shareddrivethemes`
|
||||||
* `customtheme` - set the backgroundImageFile property described here: https://developers.google.com/drive/v3/reference/teamdrives
|
* `customtheme` - set the backgroundImageFile property described here: https://developers.google.com/drive/v3/reference/teamdrives
|
||||||
* `color` - set the Shared Drive color
|
* `color` - set the Shared Drive color
|
||||||
* `<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
* `[restrictions.]<SharedDriveRestrictionsSubfieldName> <Boolean>` - Set Shared Drive Restrictions
|
||||||
* `hidden <Boolean>` - Set Shared Drive visibility
|
* `hidden <Boolean>` - Set Shared Drive visibility
|
||||||
|
|
||||||
This option is only available when the command is run as an administrator.
|
This option is only available when the command is run as an administrator.
|
||||||
|
|||||||
48
wiki/Users-Web-Resources-and-Sites.md
Normal file
48
wiki/Users-Web-Resources-and-Sites.md
Normal file
@@ -0,0 +1,48 @@
|
|||||||
|
# Users - Web Resources and Sites
|
||||||
|
- [API documentation](#api-documentation)
|
||||||
|
- [Introduction](#introduction)
|
||||||
|
- [Definitions](#definitions)
|
||||||
|
- [Display Web Resources](#display-web-resources)
|
||||||
|
- [Display Web Master Sites](#display-web-master-sites)
|
||||||
|
|
||||||
|
## API documentation
|
||||||
|
* [Web Resources](https://developers.google.com/site-verification/v1/webResource/list)
|
||||||
|
* [Web Sites](https://developers.google.com/webmaster-tools/v1/sites/list)
|
||||||
|
|
||||||
|
|
||||||
|
## Introduction
|
||||||
|
These features were added in version 7.17.00.
|
||||||
|
|
||||||
|
To use these commands you add the 'Search Console API' to your project and update your service account authorization.
|
||||||
|
```
|
||||||
|
gam update project
|
||||||
|
gam user user@domain.com update serviceaccount
|
||||||
|
...
|
||||||
|
[*] 39) Search Console API - read only
|
||||||
|
[*] 42) Site Verification API
|
||||||
|
|
||||||
|
```
|
||||||
|
## Definitions
|
||||||
|
* [`<UserTypeEntity>`](Collections-of-Users)
|
||||||
|
|
||||||
|
## Display Web Resources
|
||||||
|
```
|
||||||
|
gam <UserItem> show webresources
|
||||||
|
```
|
||||||
|
Gam displays the information as an indented list of keys and values.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam <UserItem> print webresources [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
Gam displays the information as columns of fields.
|
||||||
|
|
||||||
|
## Display Web Master Sites
|
||||||
|
```
|
||||||
|
gam <UserItem> show webmastersites
|
||||||
|
```
|
||||||
|
Gam displays the information as an indented list of keys and values.
|
||||||
|
|
||||||
|
```
|
||||||
|
gam <UserItem> print webmastersites [todrive <ToDriveAttribute>*]
|
||||||
|
```
|
||||||
|
Gam displays the information as columns of fields.
|
||||||
@@ -1,10 +1,9 @@
|
|||||||
k
|
|
||||||
# Version and Help
|
# Version and Help
|
||||||
|
|
||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAM 7.14.03 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.17.03 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -16,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.14.03 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.17.03 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -28,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.14.03 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.17.03 - https://github.com/GAM-team/GAM - pyinstaller
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
@@ -65,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.14.03
|
Latest: 7.17.03
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -73,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.14.03
|
7.17.03
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -83,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.14.03 - https://github.com/GAM-team/GAM
|
GAM 7.17.03 - https://github.com/GAM-team/GAM
|
||||||
GAM Team <google-apps-manager@googlegroups.com>
|
GAM Team <google-apps-manager@googlegroups.com>
|
||||||
Python 3.13.5 64-bit final
|
Python 3.13.5 64-bit final
|
||||||
MacOS Sequoia 15.5 x86_64
|
MacOS Sequoia 15.5 x86_64
|
||||||
|
|||||||
@@ -174,6 +174,7 @@ Service Account Access
|
|||||||
* [Users - Tag Manager](Users-Tag-Manager)
|
* [Users - Tag Manager](Users-Tag-Manager)
|
||||||
* [Users - Tasks](Users-Tasks)
|
* [Users - Tasks](Users-Tasks)
|
||||||
* [Users - YouTube](Users-YouTube)
|
* [Users - YouTube](Users-YouTube)
|
||||||
|
* [Users - Web Resources and Sites](Users-Web-Resources-and-Sites)
|
||||||
|
|
||||||
GAM Tutorials
|
GAM Tutorials
|
||||||
* [Account Auditing](l-ExamplesAccountAuditing)
|
* [Account Auditing](l-ExamplesAccountAuditing)
|
||||||
|
|||||||
@@ -412,9 +412,8 @@ never_time
|
|||||||
has the value "1970-01-01T00:00:00.000Z"
|
has the value "1970-01-01T00:00:00.000Z"
|
||||||
Default: Never
|
Default: Never
|
||||||
no_browser
|
no_browser
|
||||||
If no_browser is True, GAM won't open a browser if todrive is set
|
If no_browser is True, GAM won't open a browser when it prints a link
|
||||||
when creating CSV files and GAM prints a link and waits for
|
and waits for the verification code when oauth2.txt is being created/updated
|
||||||
the verification code when oauth2.txt is being created
|
|
||||||
Signal file: OldGamPath/nobrowser.txt
|
Signal file: OldGamPath/nobrowser.txt
|
||||||
no_cache
|
no_cache
|
||||||
Disable GAM API caching
|
Disable GAM API caching
|
||||||
|
|||||||
Reference in New Issue
Block a user