mirror of
https://github.com/GAM-team/GAM.git
synced 2026-06-28 01:41:36 +00:00
Compare commits
11 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1375bde65b | ||
|
|
936406b1b0 | ||
|
|
b39a0efd83 | ||
|
|
bcd327a7f4 | ||
|
|
81ae789acc | ||
|
|
b6ac91b97d | ||
|
|
e05b2a3843 | ||
|
|
d8e69ff50d | ||
|
|
c29f379386 | ||
|
|
f8743e1b7f | ||
|
|
24db5cc886 |
@@ -1461,16 +1461,21 @@ gam <UserTypeEntity> update serviceaccount (scope|scopes <APIScopeURLList>)*
|
|||||||
gam print privileges [todrive <ToDriveAttribute>*]
|
gam print privileges [todrive <ToDriveAttribute>*]
|
||||||
gam show privileges
|
gam show privileges
|
||||||
|
|
||||||
|
<Privilege> ::= <String>
|
||||||
|
<PrivilegeList> ::= "<Privilege>(,<Privilege)*"
|
||||||
<RoleAssignmentID> ::= <String>
|
<RoleAssignmentID> ::= <String>
|
||||||
<RoleItem> ::= id:<String>|uid:<string>|<String>
|
<RoleItem> ::= id:<String>|uid:<string>|<String>
|
||||||
|
|
||||||
gam create adminrole <String> privileges all|all_ou|<PrivilegesList> [description <String>]
|
gam create adminrole <String> [description <String>]
|
||||||
gam update adminrole <RoleItem> [name <String>] [privileges all|all_ou|<PrivilegesList>] [description <String>]
|
privileges all|all_ou|<PrivilegesList>|(select <FileSelector>|<CSVFileSelector>)
|
||||||
|
gam update adminrole <RoleItem> [name <String>] [description <String>]
|
||||||
|
[privileges all|all_ou|<PrivilegesList>|(select <FileSelector>|<CSVFileSelector>)]
|
||||||
gam delete adminrole <RoleItem>
|
gam delete adminrole <RoleItem>
|
||||||
gam info adminrole <RoleItem> [privileges]
|
gam info adminrole <RoleItem> [privileges]
|
||||||
gam print adminroles|roles [todrive <ToDriveAttribute>*]
|
gam print adminroles|roles [todrive <ToDriveAttribute>*]
|
||||||
[privileges] [oneitemperrow]
|
[role <RoleItem>] [privileges] [oneitemperrow]
|
||||||
gam show adminroles|roles [privileges]
|
gam show adminroles|roles
|
||||||
|
[role <RoleItem>] [privileges]
|
||||||
|
|
||||||
gam create|add admin <EmailAddress>|<UniqueID> <RoleItem> customer|(org_unit <OrgUnitItem>)
|
gam create|add admin <EmailAddress>|<UniqueID> <RoleItem> customer|(org_unit <OrgUnitItem>)
|
||||||
[condition securitygroup|nonsecuritygroup]
|
[condition securitygroup|nonsecuritygroup]
|
||||||
@@ -3540,19 +3545,6 @@ gam print contacts [todrive <ToDriveAttribute>*] <ContactSelection>
|
|||||||
[fields <ContactFieldNameList>]
|
[fields <ContactFieldNameList>]
|
||||||
[formatjson [quotechar <Character>]]
|
[formatjson [quotechar <Character>]]
|
||||||
|
|
||||||
vgam info gal <ContactEntity>
|
|
||||||
[basic|full]
|
|
||||||
[fields <ContactFieldNameList>]
|
|
||||||
[formatjson]
|
|
||||||
gam show gal <ContactSelection>
|
|
||||||
[basic|full] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
[fields <ContactFieldNameList>]
|
|
||||||
[formatjson]
|
|
||||||
gam print gal [todrive <ToDriveAttribute>*] <ContactSelection>
|
|
||||||
[basic|full] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
[fields <ContactFieldNameList>]
|
|
||||||
[formatjson [quotechar <Character>]]
|
|
||||||
|
|
||||||
# Domain - People Contacts and Profiles
|
# Domain - People Contacts and Profiles
|
||||||
|
|
||||||
<PeopleSourceName> ::=
|
<PeopleSourceName> ::=
|
||||||
|
|||||||
@@ -1,3 +1,32 @@
|
|||||||
|
7.07.00
|
||||||
|
As of mid-October 2024, Google deprecated the API that retrieved the Global Address List.
|
||||||
|
|
||||||
|
The following commands have been eliminated.
|
||||||
|
```
|
||||||
|
gam info gal
|
||||||
|
gam print gal
|
||||||
|
gam show gal
|
||||||
|
```
|
||||||
|
|
||||||
|
These commands are a work-around for `gam print gal`.
|
||||||
|
```
|
||||||
|
gam config csv_output_row_filter "includeInGlobalAddressList:boolean:true" redirect csv ./UserGAL.csv print users fields name,gal
|
||||||
|
gam config csv_output_row_filter "includeInGlobalAddressList:boolean:true" batch_size 25 redirect csv ./GroupGAL.csv print groups fields name,gal
|
||||||
|
```
|
||||||
|
|
||||||
|
7.06.14
|
||||||
|
|
||||||
|
Updated `gam create|update adminrole` to allow specifying a collection of privileges
|
||||||
|
with `privileges select <FileSelector>|<CSVFileSelector>` which makes copying roles much simpler.
|
||||||
|
|
||||||
|
Added option `role <RoleItem>` to `gam print|show adminroles` to allow display of information
|
||||||
|
for a specific role.
|
||||||
|
|
||||||
|
7.06.13
|
||||||
|
|
||||||
|
Updated `gam print group-members ... recursive` and `gam print cigroup-members ... recursive`
|
||||||
|
to expand groups representing chat spaces.
|
||||||
|
|
||||||
7.06.12
|
7.06.12
|
||||||
|
|
||||||
Deleted commands to display Analytic UA properties; the API has been deprecated.
|
Deleted commands to display Analytic UA properties; the API has been deprecated.
|
||||||
|
|||||||
@@ -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.06.12'
|
__version__ = '7.07.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
|
||||||
@@ -5655,8 +5655,8 @@ def getGDataUserCredentials(api, user, i, count):
|
|||||||
handleOAuthTokenError(e, True, True, i, count)
|
handleOAuthTokenError(e, True, True, i, count)
|
||||||
return (userEmail, None)
|
return (userEmail, None)
|
||||||
|
|
||||||
def getContactsObject(contactFeed):
|
def getContactsObject():
|
||||||
contactsObject = initGDataObject(gdata.apps.contacts.service.ContactsService(contactFeed=contactFeed),
|
contactsObject = initGDataObject(gdata.apps.contacts.service.ContactsService(contactFeed=True),
|
||||||
API.CONTACTS)
|
API.CONTACTS)
|
||||||
return (GC.Values[GC.DOMAIN], contactsObject)
|
return (GC.Values[GC.DOMAIN], contactsObject)
|
||||||
|
|
||||||
@@ -5981,7 +5981,7 @@ def getCIGroupMemberRoleFixType(member):
|
|||||||
else:
|
else:
|
||||||
member['type'] = Ent.TYPE_OTHER
|
member['type'] = Ent.TYPE_OTHER
|
||||||
roles = {}
|
roles = {}
|
||||||
memberRoles = member.get('roles', [{'name': Ent.MEMBER}])
|
memberRoles = member.get('roles', [{'name': Ent.ROLE_MEMBER}])
|
||||||
for role in memberRoles:
|
for role in memberRoles:
|
||||||
roles[role['name']] = role
|
roles[role['name']] = role
|
||||||
for a_role in [Ent.ROLE_OWNER, Ent.ROLE_MANAGER, Ent.ROLE_MEMBER]:
|
for a_role in [Ent.ROLE_OWNER, Ent.ROLE_MANAGER, Ent.ROLE_MEMBER]:
|
||||||
@@ -6019,7 +6019,7 @@ def getCIGroupTransitiveMemberRoleFixType(groupName, tmember):
|
|||||||
trole['name'] = Ent.ROLE_MANAGER
|
trole['name'] = Ent.ROLE_MANAGER
|
||||||
memberRoles.append(trole)
|
memberRoles.append(trole)
|
||||||
else:
|
else:
|
||||||
memberRoles = [{'name': Ent.MEMBER}]
|
memberRoles = [{'name': Ent.ROLE_MEMBER}]
|
||||||
roles = {}
|
roles = {}
|
||||||
for role in memberRoles:
|
for role in memberRoles:
|
||||||
roles[role['name']] = role
|
roles[role['name']] = role
|
||||||
@@ -16497,8 +16497,10 @@ def getRoleId():
|
|||||||
invalidChoiceExit(role, GM.Globals[GM.MAP_ROLE_NAME_TO_ID], True)
|
invalidChoiceExit(role, GM.Globals[GM.MAP_ROLE_NAME_TO_ID], True)
|
||||||
return (role, roleId)
|
return (role, roleId)
|
||||||
|
|
||||||
# gam create adminrole <String> privileges all|all_ou|<PrivilegesList> [description <String>]
|
# gam create adminrole <String> [description <String>]
|
||||||
# gam update adminrole <RoleItem> [name <String>] [privileges all|all_ou|<PrivilegesList>] [description <String>]
|
# privileges all|all_ou|<PrivilegesList>|(select <FileSelector>|<CSVFileSelector>)
|
||||||
|
# gam update adminrole <RoleItem> [name <String>] [description <String>]
|
||||||
|
# [privileges all|all_ou|<PrivilegesList>|(select <FileSelector>|<CSVFileSelector>)]
|
||||||
def doCreateUpdateAdminRoles():
|
def doCreateUpdateAdminRoles():
|
||||||
def expandChildPrivileges(privilege):
|
def expandChildPrivileges(privilege):
|
||||||
for childPrivilege in privilege.get('childPrivileges', []):
|
for childPrivilege in privilege.get('childPrivileges', []):
|
||||||
@@ -16529,8 +16531,12 @@ def doCreateUpdateAdminRoles():
|
|||||||
elif privs == 'ALL_OU':
|
elif privs == 'ALL_OU':
|
||||||
body['rolePrivileges'] = [{'privilegeName': p, 'serviceId': v} for p, v in ouPrivileges.items()]
|
body['rolePrivileges'] = [{'privilegeName': p, 'serviceId': v} for p, v in ouPrivileges.items()]
|
||||||
else:
|
else:
|
||||||
|
if privs == 'SELECT':
|
||||||
|
privsList = [p.upper() for p in getEntityList(Cmd.OB_PRIVILEGE_LIST)]
|
||||||
|
else:
|
||||||
|
privsList = privs.replace(',', ' ').split()
|
||||||
body.setdefault('rolePrivileges', [])
|
body.setdefault('rolePrivileges', [])
|
||||||
for p in privs.split(','):
|
for p in privsList:
|
||||||
if p in allPrivileges:
|
if p in allPrivileges:
|
||||||
body['rolePrivileges'].append({'privilegeName': p, 'serviceId': allPrivileges[p]})
|
body['rolePrivileges'].append({'privilegeName': p, 'serviceId': allPrivileges[p]})
|
||||||
elif p in ouPrivileges:
|
elif p in ouPrivileges:
|
||||||
@@ -16540,6 +16546,8 @@ def doCreateUpdateAdminRoles():
|
|||||||
elif ':' in p:
|
elif ':' in p:
|
||||||
priv, serv = p.split(':')
|
priv, serv = p.split(':')
|
||||||
body['rolePrivileges'].append({'privilegeName': priv, 'serviceId': serv.lower()})
|
body['rolePrivileges'].append({'privilegeName': priv, 'serviceId': serv.lower()})
|
||||||
|
elif p == 'SUPPORT':
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
invalidChoiceExit(p, list(allPrivileges.keys())+list(ouPrivileges.keys())+list(childPrivileges.keys()), True)
|
invalidChoiceExit(p, list(allPrivileges.keys())+list(ouPrivileges.keys())+list(childPrivileges.keys()), True)
|
||||||
elif myarg == 'description':
|
elif myarg == 'description':
|
||||||
@@ -16557,12 +16565,12 @@ def doCreateUpdateAdminRoles():
|
|||||||
customer=GC.Values[GC.CUSTOMER_ID], body=body, fields='roleId,roleName')
|
customer=GC.Values[GC.CUSTOMER_ID], body=body, fields='roleId,roleName')
|
||||||
else:
|
else:
|
||||||
result = callGAPI(cd.roles(), 'patch',
|
result = callGAPI(cd.roles(), 'patch',
|
||||||
throwReasons=[GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND, GAPI.FORBIDDEN]+[GAPI.NOT_FOUND, GAPI.FAILED_PRECONDITION],
|
throwReasons=[GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND, GAPI.FORBIDDEN]+[GAPI.NOT_FOUND, GAPI.FAILED_PRECONDITION, GAPI.CONFLICT],
|
||||||
customer=GC.Values[GC.CUSTOMER_ID], roleId=roleId, body=body, fields='roleId,roleName')
|
customer=GC.Values[GC.CUSTOMER_ID], roleId=roleId, body=body, fields='roleId,roleName')
|
||||||
entityActionPerformed([Ent.ADMIN_ROLE, f"{result['roleName']}({result['roleId']})"])
|
entityActionPerformed([Ent.ADMIN_ROLE, f"{result['roleName']}({result['roleId']})"])
|
||||||
except GAPI.duplicate as e:
|
except GAPI.duplicate as e:
|
||||||
entityActionFailedWarning([Ent.ADMIN_ROLE, f"{body['roleName']}"], str(e))
|
entityActionFailedWarning([Ent.ADMIN_ROLE, f"{body['roleName']}"], str(e))
|
||||||
except (GAPI.notFound, GAPI.forbidden, GAPI.failedPrecondition) as e:
|
except (GAPI.notFound, GAPI.forbidden, GAPI.failedPrecondition, GAPI.conflict) as e:
|
||||||
entityActionFailedWarning([Ent.ADMIN_ROLE, roleId], str(e))
|
entityActionFailedWarning([Ent.ADMIN_ROLE, roleId], str(e))
|
||||||
except (GAPI.badRequest, GAPI.customerNotFound):
|
except (GAPI.badRequest, GAPI.customerNotFound):
|
||||||
accessErrorExit(cd)
|
accessErrorExit(cd)
|
||||||
@@ -16605,61 +16613,53 @@ def _showAdminRole(role, i=0, count=0):
|
|||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
|
||||||
# gam info adminrole <RoleItem> [privileges]
|
# gam info adminrole <RoleItem> [privileges]
|
||||||
def doInfoAdminRole():
|
|
||||||
cd = buildGAPIObject(API.DIRECTORY)
|
|
||||||
fieldsList = PRINT_ADMIN_ROLES_FIELDS[:]
|
|
||||||
_, roleId = getRoleId()
|
|
||||||
while Cmd.ArgumentsRemaining():
|
|
||||||
myarg = getArgument()
|
|
||||||
if myarg == 'privileges':
|
|
||||||
fieldsList.append('rolePrivileges')
|
|
||||||
else:
|
|
||||||
unknownArgumentExit()
|
|
||||||
fields = getFieldsFromFieldsList(fieldsList)
|
|
||||||
try:
|
|
||||||
role = callGAPI(cd.roles(), 'get',
|
|
||||||
throwReasons=[GAPI.NOT_FOUND, GAPI.FORBIDDEN, GAPI.FAILED_PRECONDITION,
|
|
||||||
GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND],
|
|
||||||
customer=GC.Values[GC.CUSTOMER_ID], roleId=roleId, fields=fields)
|
|
||||||
role.setdefault('isSuperAdminRole', False)
|
|
||||||
role.setdefault('isSystemRole', False)
|
|
||||||
_showAdminRole(role)
|
|
||||||
except (GAPI.notFound, GAPI.forbidden, GAPI.failedPrecondition) as e:
|
|
||||||
entityActionFailedWarning([Ent.ADMIN_ROLE, roleId], str(e))
|
|
||||||
except (GAPI.badRequest, GAPI.customerNotFound):
|
|
||||||
accessErrorExit(cd)
|
|
||||||
|
|
||||||
# gam print adminroles|roles [todrive <ToDriveAttribute>*]
|
# gam print adminroles|roles [todrive <ToDriveAttribute>*]
|
||||||
# [privileges] [oneitemperrow]
|
# [role <RoleItem>] [privileges] [oneitemperrow]
|
||||||
# gam show adminroles|roles [privileges]
|
# gam show adminroles|roles
|
||||||
def doPrintShowAdminRoles():
|
# [role <RoleItem>] [privileges]
|
||||||
|
def doInfoPrintShowAdminRoles():
|
||||||
cd = buildGAPIObject(API.DIRECTORY)
|
cd = buildGAPIObject(API.DIRECTORY)
|
||||||
fieldsList = PRINT_ADMIN_ROLES_FIELDS[:]
|
fieldsList = PRINT_ADMIN_ROLES_FIELDS[:]
|
||||||
csvPF = CSVPrintFile(fieldsList, PRINT_ADMIN_ROLES_FIELDS) if Act.csvFormat() else None
|
csvPF = CSVPrintFile(fieldsList, PRINT_ADMIN_ROLES_FIELDS) if Act.csvFormat() else None
|
||||||
oneItemPerRow = False
|
oneItemPerRow = False
|
||||||
|
if Act.Get() != Act.INFO:
|
||||||
|
roleId = None
|
||||||
|
else:
|
||||||
|
_, roleId = getRoleId()
|
||||||
while Cmd.ArgumentsRemaining():
|
while Cmd.ArgumentsRemaining():
|
||||||
myarg = getArgument()
|
myarg = getArgument()
|
||||||
if csvPF and myarg == 'todrive':
|
if csvPF and myarg == 'todrive':
|
||||||
csvPF.GetTodriveParameters()
|
csvPF.GetTodriveParameters()
|
||||||
|
elif roleId is None and myarg == 'role':
|
||||||
|
_, roleId = getRoleId()
|
||||||
elif myarg == 'privileges':
|
elif myarg == 'privileges':
|
||||||
fieldsList.append('rolePrivileges')
|
fieldsList.append('rolePrivileges')
|
||||||
elif myarg == 'oneitemperrow':
|
elif myarg == 'oneitemperrow':
|
||||||
oneItemPerRow = True
|
oneItemPerRow = True
|
||||||
else:
|
else:
|
||||||
unknownArgumentExit()
|
unknownArgumentExit()
|
||||||
if csvPF:
|
if csvPF and 'rolePrivileges' in fieldsList:
|
||||||
if not oneItemPerRow:
|
if not oneItemPerRow:
|
||||||
csvPF.AddTitles(['rolePrivileges'])
|
csvPF.AddTitles(['rolePrivileges'])
|
||||||
else:
|
else:
|
||||||
csvPF.AddTitles(['privilegeName', 'serviceId'])
|
csvPF.AddTitles(['privilegeName', 'serviceId'])
|
||||||
fields = getItemFieldsFromFieldsList('items', fieldsList)
|
|
||||||
printGettingAllAccountEntities(Ent.ADMIN_ROLE)
|
|
||||||
try:
|
try:
|
||||||
roles = callGAPIpages(cd.roles(), 'list', 'items',
|
if roleId is None:
|
||||||
pageMessage=getPageMessage(),
|
fields = getItemFieldsFromFieldsList('items', fieldsList)
|
||||||
throwReasons=[GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND, GAPI.FORBIDDEN],
|
printGettingAllAccountEntities(Ent.ADMIN_ROLE)
|
||||||
customer=GC.Values[GC.CUSTOMER_ID], fields=fields)
|
roles = callGAPIpages(cd.roles(), 'list', 'items',
|
||||||
except (GAPI.badRequest, GAPI.customerNotFound, GAPI.forbidden):
|
pageMessage=getPageMessage(),
|
||||||
|
throwReasons=[GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND, GAPI.FORBIDDEN],
|
||||||
|
customer=GC.Values[GC.CUSTOMER_ID], fields=fields)
|
||||||
|
else:
|
||||||
|
fields = getFieldsFromFieldsList(fieldsList)
|
||||||
|
roles = [callGAPI(cd.roles(), 'get',
|
||||||
|
throwReasons=[GAPI.NOT_FOUND, GAPI.FORBIDDEN, GAPI.FAILED_PRECONDITION,
|
||||||
|
GAPI.BAD_REQUEST, GAPI.CUSTOMER_NOT_FOUND],
|
||||||
|
customer=GC.Values[GC.CUSTOMER_ID], roleId=roleId, fields=fields)]
|
||||||
|
except (GAPI.notFound, GAPI.forbidden, GAPI.failedPrecondition) as e:
|
||||||
|
entityActionFailedWarning([Ent.ADMIN_ROLE, roleId], str(e))
|
||||||
|
except (GAPI.badRequest, GAPI.customerNotFound):
|
||||||
accessErrorExit(cd)
|
accessErrorExit(cd)
|
||||||
for role in roles:
|
for role in roles:
|
||||||
role.setdefault('isSuperAdminRole', False)
|
role.setdefault('isSuperAdminRole', False)
|
||||||
@@ -19996,7 +19996,9 @@ def dedupEmailAddressMatches(contactsManager, emailMatchType, fields):
|
|||||||
fields[CONTACT_EMAILS] = savedAddresses
|
fields[CONTACT_EMAILS] = savedAddresses
|
||||||
return updateRequired
|
return updateRequired
|
||||||
|
|
||||||
def _createContact():
|
# gam create contact <ContactAttribute>+
|
||||||
|
# [(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*))| returnidonly]
|
||||||
|
def doCreateDomainContact():
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
parameters = {'csvPF': None, 'titles': ['Domain', CONTACT_ID], 'addCSVData': {}, 'returnIdOnly': False}
|
parameters = {'csvPF': None, 'titles': ['Domain', CONTACT_ID], 'addCSVData': {}, 'returnIdOnly': False}
|
||||||
@@ -20007,7 +20009,7 @@ def _createContact():
|
|||||||
csvPF.AddTitles(sorted(addCSVData.keys()))
|
csvPF.AddTitles(sorted(addCSVData.keys()))
|
||||||
returnIdOnly = parameters['returnIdOnly']
|
returnIdOnly = parameters['returnIdOnly']
|
||||||
contactEntry = contactsManager.FieldsToContact(fields)
|
contactEntry = contactsManager.FieldsToContact(fields)
|
||||||
user, contactsObject = getContactsObject(True)
|
user, contactsObject = getContactsObject()
|
||||||
try:
|
try:
|
||||||
contact = callGData(contactsObject, 'CreateContact',
|
contact = callGData(contactsObject, 'CreateContact',
|
||||||
throwErrors=[GDATA.BAD_REQUEST, GDATA.SERVICE_NOT_APPLICABLE, GDATA.FORBIDDEN],
|
throwErrors=[GDATA.BAD_REQUEST, GDATA.SERVICE_NOT_APPLICABLE, GDATA.FORBIDDEN],
|
||||||
@@ -20032,11 +20034,6 @@ def _createContact():
|
|||||||
if csvPF:
|
if csvPF:
|
||||||
csvPF.writeCSVfile('Contacts')
|
csvPF.writeCSVfile('Contacts')
|
||||||
|
|
||||||
# gam create contact <ContactAttribute>+
|
|
||||||
# [(csv [todrive <ToDriveAttribute>*] (addcsvdata <FieldName> <String>)*))| returnidonly]
|
|
||||||
def doCreateDomainContact():
|
|
||||||
_createContact()
|
|
||||||
|
|
||||||
def _clearUpdateContacts(updateContacts):
|
def _clearUpdateContacts(updateContacts):
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
@@ -20058,7 +20055,7 @@ def _clearUpdateContacts(updateContacts):
|
|||||||
unknownArgumentExit()
|
unknownArgumentExit()
|
||||||
if not contactClear['emailClearPattern']:
|
if not contactClear['emailClearPattern']:
|
||||||
missingArgumentExit('emailclearpattern')
|
missingArgumentExit('emailclearpattern')
|
||||||
user, contactsObject = getContactsObject(True)
|
user, contactsObject = getContactsObject()
|
||||||
if queriedContacts:
|
if queriedContacts:
|
||||||
entityList = queryContacts(contactsObject, contactQuery)
|
entityList = queryContacts(contactsObject, contactQuery)
|
||||||
if entityList is None:
|
if entityList is None:
|
||||||
@@ -20129,7 +20126,8 @@ def doClearDomainContacts():
|
|||||||
def doUpdateDomainContacts():
|
def doUpdateDomainContacts():
|
||||||
_clearUpdateContacts(True)
|
_clearUpdateContacts(True)
|
||||||
|
|
||||||
def _dedupContacts():
|
# gam dedup contacts <ContactEntity>|<ContactSelection> [matchType [<Boolean>]]
|
||||||
|
def doDedupDomainContacts():
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
contactQuery = _initContactQueryAttributes()
|
contactQuery = _initContactQueryAttributes()
|
||||||
@@ -20140,7 +20138,7 @@ def _dedupContacts():
|
|||||||
emailMatchType = getBoolean()
|
emailMatchType = getBoolean()
|
||||||
else:
|
else:
|
||||||
_getContactQueryAttributes(contactQuery, myarg, -1, False)
|
_getContactQueryAttributes(contactQuery, myarg, -1, False)
|
||||||
user, contactsObject = getContactsObject(True)
|
user, contactsObject = getContactsObject()
|
||||||
contacts = queryContacts(contactsObject, contactQuery)
|
contacts = queryContacts(contactsObject, contactQuery)
|
||||||
if contacts is None:
|
if contacts is None:
|
||||||
return
|
return
|
||||||
@@ -20180,15 +20178,12 @@ def _dedupContacts():
|
|||||||
break
|
break
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
|
||||||
# gam dedup contacts <ContactEntity>|<ContactSelection> [matchType [<Boolean>]]
|
# gam delete contacts <ContactEntity>|<ContactSelection>
|
||||||
def doDedupDomainContacts():
|
def doDeleteDomainContacts():
|
||||||
_dedupContacts()
|
|
||||||
|
|
||||||
def _deleteContacts():
|
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
entityList, contactQuery, queriedContacts = _getContactEntityList(-1, False)
|
entityList, contactQuery, queriedContacts = _getContactEntityList(-1, False)
|
||||||
user, contactsObject = getContactsObject(True)
|
user, contactsObject = getContactsObject()
|
||||||
if queriedContacts:
|
if queriedContacts:
|
||||||
entityList = queryContacts(contactsObject, contactQuery)
|
entityList = queryContacts(contactsObject, contactQuery)
|
||||||
if entityList is None:
|
if entityList is None:
|
||||||
@@ -20228,10 +20223,6 @@ def _deleteContacts():
|
|||||||
break
|
break
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
|
||||||
# gam delete contacts <ContactEntity>|<ContactSelection>
|
|
||||||
def doDeleteDomainContacts():
|
|
||||||
_deleteContacts()
|
|
||||||
|
|
||||||
CONTACT_TIME_OBJECTS = {CONTACT_UPDATED}
|
CONTACT_TIME_OBJECTS = {CONTACT_UPDATED}
|
||||||
CONTACT_FIELDS_WITH_CRS_NLS = {CONTACT_NOTES, CONTACT_BILLING_INFORMATION}
|
CONTACT_FIELDS_WITH_CRS_NLS = {CONTACT_NOTES, CONTACT_BILLING_INFORMATION}
|
||||||
|
|
||||||
@@ -20299,7 +20290,10 @@ def _getContactFieldsList(contactsManager, displayFieldsList):
|
|||||||
else:
|
else:
|
||||||
invalidChoiceExit(field, contactsManager.CONTACT_ARGUMENT_TO_PROPERTY_MAP, True)
|
invalidChoiceExit(field, contactsManager.CONTACT_ARGUMENT_TO_PROPERTY_MAP, True)
|
||||||
|
|
||||||
def _infoContacts(contactFeed):
|
# gam info contacts <ContactEntity>
|
||||||
|
# [basic|full]
|
||||||
|
# [fields <ContactFieldNameList>] [formatjson]
|
||||||
|
def doInfoDomainContacts():
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
entityList = getEntityList(Cmd.OB_CONTACT_ENTITY)
|
entityList = getEntityList(Cmd.OB_CONTACT_ENTITY)
|
||||||
@@ -20314,7 +20308,7 @@ def _infoContacts(contactFeed):
|
|||||||
_getContactFieldsList(contactsManager, displayFieldsList)
|
_getContactFieldsList(contactsManager, displayFieldsList)
|
||||||
else:
|
else:
|
||||||
FJQC.GetFormatJSON(myarg)
|
FJQC.GetFormatJSON(myarg)
|
||||||
user, contactsObject = getContactsObject(contactFeed)
|
user, contactsObject = getContactsObject()
|
||||||
j = 0
|
j = 0
|
||||||
jcount = len(entityList)
|
jcount = len(entityList)
|
||||||
if not FJQC.formatJSON:
|
if not FJQC.formatJSON:
|
||||||
@@ -20342,19 +20336,13 @@ def _infoContacts(contactFeed):
|
|||||||
break
|
break
|
||||||
Ind.Decrement()
|
Ind.Decrement()
|
||||||
|
|
||||||
# gam info contacts <ContactEntity>
|
# gam print contacts [todrive <ToDriveAttribute>*] <ContactSelection>
|
||||||
# [basic|full]
|
# [basic|full|countsonly] [showdeleted] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
||||||
|
# [fields <ContactFieldNameList>] [formatjson [quotechar <Character>]]
|
||||||
|
# gam show contacts <ContactSelection>
|
||||||
|
# [basic|full|countsonly] [showdeleted] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
||||||
# [fields <ContactFieldNameList>] [formatjson]
|
# [fields <ContactFieldNameList>] [formatjson]
|
||||||
def doInfoDomainContacts():
|
def doPrintShowDomainContacts():
|
||||||
_infoContacts(True)
|
|
||||||
|
|
||||||
# gam info gal <ContactEntity>
|
|
||||||
# [basic|full]
|
|
||||||
# [fields <ContactFieldNameList>] [formatjson]
|
|
||||||
def doInfoGAL():
|
|
||||||
_infoContacts(False)
|
|
||||||
|
|
||||||
def _printShowContacts(contactFeed):
|
|
||||||
entityType = Ent.DOMAIN
|
entityType = Ent.DOMAIN
|
||||||
entityTypeName = Ent.Singular(entityType)
|
entityTypeName = Ent.Singular(entityType)
|
||||||
contactsManager = ContactsManager()
|
contactsManager = ContactsManager()
|
||||||
@@ -20380,7 +20368,7 @@ def _printShowContacts(contactFeed):
|
|||||||
pass
|
pass
|
||||||
else:
|
else:
|
||||||
FJQC.GetFormatJSONQuoteChar(myarg, True)
|
FJQC.GetFormatJSONQuoteChar(myarg, True)
|
||||||
user, contactsObject = getContactsObject(contactFeed)
|
user, contactsObject = getContactsObject()
|
||||||
contacts = queryContacts(contactsObject, contactQuery)
|
contacts = queryContacts(contactsObject, contactQuery)
|
||||||
if countsOnly:
|
if countsOnly:
|
||||||
jcount = countLocalContactSelects(contactsManager, contacts, contactQuery)
|
jcount = countLocalContactSelects(contactsManager, contacts, contactQuery)
|
||||||
@@ -20466,24 +20454,6 @@ def _printShowContacts(contactFeed):
|
|||||||
if csvPF:
|
if csvPF:
|
||||||
csvPF.writeCSVfile(CSVTitle)
|
csvPF.writeCSVfile(CSVTitle)
|
||||||
|
|
||||||
# gam print contacts [todrive <ToDriveAttribute>*] <ContactSelection>
|
|
||||||
# [basic|full|countsonly] [showdeleted] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
# [fields <ContactFieldNameList>] [formatjson [quotechar <Character>]]
|
|
||||||
# gam show contacts <ContactSelection>
|
|
||||||
# [basic|full|countsonly] [showdeleted] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
# [fields <ContactFieldNameList>] [formatjson]
|
|
||||||
def doPrintShowDomainContacts():
|
|
||||||
_printShowContacts(True)
|
|
||||||
|
|
||||||
# gam print gal [todrive <ToDriveAttribute>*] <ContactSelection>
|
|
||||||
# [basic|full] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
# [fields <ContactFieldNameList>] [formatjson [quotechar <Character>]]
|
|
||||||
# gam show gal <ContactSelection>
|
|
||||||
# [basic|full|countsonly] [orderby <ContactOrderByFieldName> [ascending|descending]]
|
|
||||||
# [fields <ContactFieldNameList>] [formatjson]
|
|
||||||
def doPrintShowGAL():
|
|
||||||
_printShowContacts(False)
|
|
||||||
|
|
||||||
# Prople commands utilities
|
# Prople commands utilities
|
||||||
#
|
#
|
||||||
def normalizePeopleResourceName(resourceName):
|
def normalizePeopleResourceName(resourceName):
|
||||||
@@ -26478,6 +26448,64 @@ def _getChatMemberEmail(cd, member):
|
|||||||
_, memberUid = member['groupMember']['name'].split('/')
|
_, memberUid = member['groupMember']['name'].split('/')
|
||||||
member['groupMember']['email'], _ = convertUIDtoEmailAddressWithType(f'uid:{memberUid}', cd, None, emailTypes=['group'])
|
member['groupMember']['email'], _ = convertUIDtoEmailAddressWithType(f'uid:{memberUid}', cd, None, emailTypes=['group'])
|
||||||
|
|
||||||
|
def _getChatSpaceMembers(cd, chatSpace, ciGroupName):
|
||||||
|
if chatSpace.startswith('space/'):
|
||||||
|
_, chatSpace = chatSpace.split('/', 1)
|
||||||
|
chatSpace = 'spaces/'+chatSpace
|
||||||
|
kwargsUAA = {'useAdminAccess': True, 'filter': 'member.type != "BOT"'}
|
||||||
|
user, chat, kvList = buildChatServiceObject(API.CHAT_MEMBERSHIPS_ADMIN, _getAdminEmail(), 0, 0, [Ent.CHAT_SPACE, chatSpace], True)
|
||||||
|
memberList = []
|
||||||
|
if not chat:
|
||||||
|
return memberList
|
||||||
|
fields = getItemFieldsFromFieldsList('memberships', [])
|
||||||
|
qfilter = f'{Ent.Singular(Ent.CHAT_SPACE)}: {chatSpace}, {kwargsUAA["filter"]}'
|
||||||
|
try:
|
||||||
|
members = callGAPIpages(chat.spaces().members(), 'list', 'memberships',
|
||||||
|
pageMessage=_getChatPageMessage(Ent.CHAT_MEMBER, user, 0, 0, qfilter),
|
||||||
|
throwReasons=[GAPI.NOT_FOUND, GAPI.INVALID_ARGUMENT, GAPI.PERMISSION_DENIED],
|
||||||
|
retryReasons=GAPI.SERVICE_NOT_AVAILABLE_RETRY_REASONS,
|
||||||
|
parent=chatSpace, fields=fields, pageSize=CHAT_PAGE_SIZE, **kwargsUAA)
|
||||||
|
for member in members:
|
||||||
|
_getChatMemberEmail(cd, member)
|
||||||
|
gmember = {}
|
||||||
|
if 'member' in member:
|
||||||
|
if member['member']['type'] == 'HUMAN':
|
||||||
|
_, memberUid = member['member']['name'].split('/')
|
||||||
|
gmember['type'] = Ent.TYPE_USER
|
||||||
|
email, _ = convertUIDtoEmailAddressWithType(f'uid:{memberUid}', cd, None, emailTypes=['user'])
|
||||||
|
role = Ent.ROLE_MANAGER if member['role'] == 'ROLE_MANAGER' else Ent.ROLE_MEMBER
|
||||||
|
if not ciGroupName:
|
||||||
|
gmember['id'] = memberUid
|
||||||
|
gmember['email'] = email
|
||||||
|
gmember['role'] = role
|
||||||
|
gmember['status'] = member['state']
|
||||||
|
else:
|
||||||
|
gmember['name'] = f'{ciGroupName}/memberships/{memberUid}'
|
||||||
|
gmember['preferredMemberKey'] = {'id': email}
|
||||||
|
gmember['roles'] = [{'name': role}]
|
||||||
|
gmember['createTime'] = member['createTime']
|
||||||
|
memberList.append(gmember)
|
||||||
|
elif 'groupMember' in member:
|
||||||
|
_, memberUid = member['groupMember']['name'].split('/')
|
||||||
|
gmember['type'] = Ent.TYPE_GROUP
|
||||||
|
role = Ent.ROLE_MANAGER if member['role'] == 'ROLE_MANAGER' else Ent.ROLE_MEMBER
|
||||||
|
email, _ = convertUIDtoEmailAddressWithType(f'uid:{memberUid}', cd, None, emailTypes=['group'])
|
||||||
|
if not ciGroupName:
|
||||||
|
gmember['id'] = memberUid
|
||||||
|
gmember['email'] = email
|
||||||
|
gmember['role'] = role
|
||||||
|
gmember['status'] = member['state']
|
||||||
|
else:
|
||||||
|
gmember['name'] = f'{ciGroupName}/memberships/{memberUid}'
|
||||||
|
gmember['preferredMemberKey'] = {'id': email}
|
||||||
|
gmember['roles'] = [{'name': role}]
|
||||||
|
gmember['createTime'] = member['createTime']
|
||||||
|
memberList.append(gmember)
|
||||||
|
return memberList
|
||||||
|
except (GAPI.notFound, GAPI.invalidArgument, GAPI.permissionDenied) as e:
|
||||||
|
exitIfChatNotConfigured(chat, kvList, str(e), 0, 0)
|
||||||
|
return memberList
|
||||||
|
|
||||||
def normalizeUserMember(user, userList):
|
def normalizeUserMember(user, userList):
|
||||||
userList.append(normalizeEmailAddressOrUID(user))
|
userList.append(normalizeEmailAddressOrUID(user))
|
||||||
|
|
||||||
@@ -34138,15 +34166,18 @@ def getGroupMembers(cd, groupEmail, memberRoles, membersList, membersSet, i, cou
|
|||||||
|
|
||||||
printGettingAllEntityItemsForWhom(memberRoles if memberRoles else Ent.ROLE_MANAGER_MEMBER_OWNER, groupEmail, i, count)
|
printGettingAllEntityItemsForWhom(memberRoles if memberRoles else Ent.ROLE_MANAGER_MEMBER_OWNER, groupEmail, i, count)
|
||||||
validRoles, listRoles, listFields = _getRoleVerification(memberRoles, 'nextPageToken,members(email,id,role,status,type,delivery_settings)')
|
validRoles, listRoles, listFields = _getRoleVerification(memberRoles, 'nextPageToken,members(email,id,role,status,type,delivery_settings)')
|
||||||
try:
|
if not groupEmail.startswith('space/'):
|
||||||
groupMembers = callGAPIpages(cd.members(), 'list', 'members',
|
try:
|
||||||
pageMessage=getPageMessageForWhom(),
|
groupMembers = callGAPIpages(cd.members(), 'list', 'members',
|
||||||
throwReasons=GAPI.MEMBERS_THROW_REASONS, retryReasons=GAPI.MEMBERS_RETRY_REASONS,
|
pageMessage=getPageMessageForWhom(),
|
||||||
includeDerivedMembership=memberOptions[MEMBEROPTION_INCLUDEDERIVEDMEMBERSHIP],
|
throwReasons=GAPI.MEMBERS_THROW_REASONS, retryReasons=GAPI.MEMBERS_RETRY_REASONS,
|
||||||
groupKey=groupEmail, roles=listRoles, fields=listFields, maxResults=GC.Values[GC.MEMBER_MAX_RESULTS])
|
includeDerivedMembership=memberOptions[MEMBEROPTION_INCLUDEDERIVEDMEMBERSHIP],
|
||||||
except (GAPI.groupNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis, GAPI.invalid, GAPI.forbidden, GAPI.serviceNotAvailable):
|
groupKey=groupEmail, roles=listRoles, fields=listFields, maxResults=GC.Values[GC.MEMBER_MAX_RESULTS])
|
||||||
entityUnknownWarning(Ent.GROUP, groupEmail, i, count)
|
except (GAPI.groupNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis, GAPI.invalid, GAPI.forbidden, GAPI.serviceNotAvailable):
|
||||||
return
|
entityUnknownWarning(Ent.GROUP, groupEmail, i, count)
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
groupMembers = _getChatSpaceMembers(cd, groupEmail, '')
|
||||||
checkCategory = memberDisplayOptions['showCategory']
|
checkCategory = memberDisplayOptions['showCategory']
|
||||||
if not memberOptions[MEMBEROPTION_RECURSIVE]:
|
if not memberOptions[MEMBEROPTION_RECURSIVE]:
|
||||||
if memberOptions[MEMBEROPTION_NODUPLICATES]:
|
if memberOptions[MEMBEROPTION_NODUPLICATES]:
|
||||||
@@ -34170,8 +34201,7 @@ def getGroupMembers(cd, groupEmail, memberRoles, membersList, membersSet, i, cou
|
|||||||
elif memberOptions[MEMBEROPTION_NODUPLICATES]:
|
elif memberOptions[MEMBEROPTION_NODUPLICATES]:
|
||||||
groupMemberList = []
|
groupMemberList = []
|
||||||
for member in groupMembers:
|
for member in groupMembers:
|
||||||
namespace = member['email'].find('@') == -1
|
if member['type'] != Ent.TYPE_GROUP:
|
||||||
if member['type'] != Ent.TYPE_GROUP or namespace:
|
|
||||||
if ((member['type'] in typesSet and
|
if ((member['type'] in typesSet and
|
||||||
checkMemberMatch(member, memberOptions) and
|
checkMemberMatch(member, memberOptions) and
|
||||||
_checkMemberRoleIsSuspendedIsArchived(member, validRoles, memberOptions[MEMBEROPTION_ISSUSPENDED], memberOptions[MEMBEROPTION_ISARCHIVED]) and
|
_checkMemberRoleIsSuspendedIsArchived(member, validRoles, memberOptions[MEMBEROPTION_ISSUSPENDED], memberOptions[MEMBEROPTION_ISARCHIVED]) and
|
||||||
@@ -34200,8 +34230,7 @@ def getGroupMembers(cd, groupEmail, memberRoles, membersList, membersSet, i, cou
|
|||||||
memberOptions, memberDisplayOptions, level+1, typesSet)
|
memberOptions, memberDisplayOptions, level+1, typesSet)
|
||||||
else:
|
else:
|
||||||
for member in groupMembers:
|
for member in groupMembers:
|
||||||
namespace = member['email'].find('@') == -1
|
if member['type'] != Ent.TYPE_GROUP:
|
||||||
if member['type'] != Ent.TYPE_GROUP or namespace:
|
|
||||||
if ((member['type'] in typesSet) and
|
if ((member['type'] in typesSet) and
|
||||||
checkMemberMatch(member, memberOptions) and
|
checkMemberMatch(member, memberOptions) and
|
||||||
_checkMemberRoleIsSuspendedIsArchived(member, validRoles,
|
_checkMemberRoleIsSuspendedIsArchived(member, validRoles,
|
||||||
@@ -36253,7 +36282,7 @@ def getCIGroupTransitiveMembers(ci, groupName, membersList, i, count):
|
|||||||
return True
|
return True
|
||||||
|
|
||||||
def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, count,
|
def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, count,
|
||||||
memberOptions, memberDisplayOptions, level, typesSet, groupEmail, kwargs):
|
memberOptions, memberDisplayOptions, level, typesSet, groupEmail, kwargs, cd):
|
||||||
nameToPrint = groupEmail if groupEmail else groupName
|
nameToPrint = groupEmail if groupEmail else groupName
|
||||||
printGettingAllEntityItemsForWhom(memberRoles if memberRoles else Ent.ROLE_MANAGER_MEMBER_OWNER, nameToPrint, i, count)
|
printGettingAllEntityItemsForWhom(memberRoles if memberRoles else Ent.ROLE_MANAGER_MEMBER_OWNER, nameToPrint, i, count)
|
||||||
validRoles = _getCIRoleVerification(memberRoles)
|
validRoles = _getCIRoleVerification(memberRoles)
|
||||||
@@ -36266,16 +36295,21 @@ def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, co
|
|||||||
if member['type'] in typesSet and checkCIMemberMatch(member, memberOptions):
|
if member['type'] in typesSet and checkCIMemberMatch(member, memberOptions):
|
||||||
membersList.append(member)
|
membersList.append(member)
|
||||||
return
|
return
|
||||||
try:
|
if not groupEmail.startswith('space/'):
|
||||||
groupMembers = callGAPIpages(ci.groups().memberships(), 'list', 'memberships',
|
try:
|
||||||
pageMessage=getPageMessageForWhom(),
|
groupMembers = callGAPIpages(ci.groups().memberships(), 'list', 'memberships',
|
||||||
throwReasons=GAPI.CIGROUP_LIST_THROW_REASONS, retryReasons=GAPI.CIGROUP_RETRY_REASONS,
|
pageMessage=getPageMessageForWhom(),
|
||||||
parent=groupName, **kwargs)
|
throwReasons=GAPI.CIGROUP_LIST_THROW_REASONS, retryReasons=GAPI.CIGROUP_RETRY_REASONS,
|
||||||
except (GAPI.resourceNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis,
|
parent=groupName, **kwargs)
|
||||||
GAPI.forbidden, GAPI.badRequest, GAPI.invalid, GAPI.invalidArgument, GAPI.systemError,
|
except (GAPI.resourceNotFound, GAPI.domainNotFound, GAPI.domainCannotUseApis,
|
||||||
GAPI.permissionDenied, GAPI.serviceNotAvailable):
|
GAPI.forbidden, GAPI.badRequest, GAPI.invalid, GAPI.invalidArgument, GAPI.systemError,
|
||||||
entityUnknownWarning(Ent.CLOUD_IDENTITY_GROUP, nameToPrint, i, count)
|
GAPI.permissionDenied, GAPI.serviceNotAvailable):
|
||||||
return
|
entityUnknownWarning(Ent.CLOUD_IDENTITY_GROUP, nameToPrint, i, count)
|
||||||
|
return
|
||||||
|
else:
|
||||||
|
if cd is None:
|
||||||
|
cd = buildGAPIObject(API.DIRECTORY)
|
||||||
|
groupMembers = _getChatSpaceMembers(cd, groupEmail, groupName)
|
||||||
checkCategory = memberDisplayOptions['showCategory']
|
checkCategory = memberDisplayOptions['showCategory']
|
||||||
if not memberOptions[MEMBEROPTION_RECURSIVE]:
|
if not memberOptions[MEMBEROPTION_RECURSIVE]:
|
||||||
if memberOptions[MEMBEROPTION_NODUPLICATES]:
|
if memberOptions[MEMBEROPTION_NODUPLICATES]:
|
||||||
@@ -36300,8 +36334,7 @@ def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, co
|
|||||||
for member in groupMembers:
|
for member in groupMembers:
|
||||||
getCIGroupMemberRoleFixType(member)
|
getCIGroupMemberRoleFixType(member)
|
||||||
memberName = member.get('preferredMemberKey', {}).get('id', '')
|
memberName = member.get('preferredMemberKey', {}).get('id', '')
|
||||||
namespace = member.get('preferredMemberKey', {}).get('namespace', '')
|
if member['type'] != Ent.TYPE_GROUP:
|
||||||
if member['type'] != Ent.TYPE_GROUP or namespace:
|
|
||||||
if (member['type'] in typesSet and
|
if (member['type'] in typesSet and
|
||||||
checkCIMemberMatch(member, memberOptions) and
|
checkCIMemberMatch(member, memberOptions) and
|
||||||
_checkMemberRole(member, validRoles) and
|
_checkMemberRole(member, validRoles) and
|
||||||
@@ -36324,13 +36357,12 @@ def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, co
|
|||||||
groupMemberList.append((f'groups/{gname}', memberName))
|
groupMemberList.append((f'groups/{gname}', memberName))
|
||||||
for member in groupMemberList:
|
for member in groupMemberList:
|
||||||
getCIGroupMembers(ci, member[0], memberRoles, membersList, membersSet, i, count,
|
getCIGroupMembers(ci, member[0], memberRoles, membersList, membersSet, i, count,
|
||||||
memberOptions, memberDisplayOptions, level+1, typesSet, member[1], kwargs)
|
memberOptions, memberDisplayOptions, level+1, typesSet, member[1], kwargs, cd)
|
||||||
else:
|
else:
|
||||||
for member in groupMembers:
|
for member in groupMembers:
|
||||||
getCIGroupMemberRoleFixType(member)
|
getCIGroupMemberRoleFixType(member)
|
||||||
memberName = member.get('preferredMemberKey', {}).get('id', '')
|
memberName = member.get('preferredMemberKey', {}).get('id', '')
|
||||||
namespace = member.get('preferredMemberKey', {}).get('namespace', '')
|
if member['type'] != Ent.TYPE_GROUP:
|
||||||
if member['type'] != Ent.TYPE_GROUP or namespace:
|
|
||||||
if (member['type'] in typesSet and
|
if (member['type'] in typesSet and
|
||||||
checkCIMemberMatch(member, memberOptions) and
|
checkCIMemberMatch(member, memberOptions) and
|
||||||
_checkMemberRole(member, validRoles) and
|
_checkMemberRole(member, validRoles) and
|
||||||
@@ -36347,7 +36379,7 @@ def getCIGroupMembers(ci, groupName, memberRoles, membersList, membersSet, i, co
|
|||||||
membersList.append(member)
|
membersList.append(member)
|
||||||
_, gname = member['name'].rsplit('/', 1)
|
_, gname = member['name'].rsplit('/', 1)
|
||||||
getCIGroupMembers(ci, f'groups/{gname}', memberRoles, membersList, membersSet, i, count,
|
getCIGroupMembers(ci, f'groups/{gname}', memberRoles, membersList, membersSet, i, count,
|
||||||
memberOptions, memberDisplayOptions, level+1, typesSet, memberName, kwargs)
|
memberOptions, memberDisplayOptions, level+1, typesSet, memberName, kwargs, cd)
|
||||||
|
|
||||||
CIGROUPMEMBERS_FIELDS_CHOICE_MAP = {
|
CIGROUPMEMBERS_FIELDS_CHOICE_MAP = {
|
||||||
'createtime': 'createTime',
|
'createtime': 'createTime',
|
||||||
@@ -36511,7 +36543,7 @@ def doPrintCIGroupMembers():
|
|||||||
membersList = []
|
membersList = []
|
||||||
membersSet = set()
|
membersSet = set()
|
||||||
getCIGroupMembers(ci, groupEntity['name'], getRoles, membersList, membersSet, i, count,
|
getCIGroupMembers(ci, groupEntity['name'], getRoles, membersList, membersSet, i, count,
|
||||||
memberOptions, memberDisplayOptions, level, typesSet, groupEmail, kwargs)
|
memberOptions, memberDisplayOptions, level, typesSet, groupEmail, kwargs, None)
|
||||||
if showOwnedBy and not checkCIGroupShowOwnedBy(showOwnedBy, membersList):
|
if showOwnedBy and not checkCIGroupShowOwnedBy(showOwnedBy, membersList):
|
||||||
continue
|
continue
|
||||||
for member in membersList:
|
for member in membersList:
|
||||||
@@ -75551,7 +75583,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
),
|
),
|
||||||
'info':
|
'info':
|
||||||
(Act.INFO,
|
(Act.INFO,
|
||||||
{Cmd.ARG_ADMINROLE: doInfoAdminRole,
|
{Cmd.ARG_ADMINROLE: doInfoPrintShowAdminRoles,
|
||||||
Cmd.ARG_ALERT: doInfoAlert,
|
Cmd.ARG_ALERT: doInfoAlert,
|
||||||
Cmd.ARG_ALIAS: doInfoAliases,
|
Cmd.ARG_ALIAS: doInfoAliases,
|
||||||
Cmd.ARG_BUILDING: doInfoBuilding,
|
Cmd.ARG_BUILDING: doInfoBuilding,
|
||||||
@@ -75583,7 +75615,6 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_DRIVEFILEACL: doInfoDriveFileACLs,
|
Cmd.ARG_DRIVEFILEACL: doInfoDriveFileACLs,
|
||||||
Cmd.ARG_DRIVELABEL: doInfoDriveLabels,
|
Cmd.ARG_DRIVELABEL: doInfoDriveLabels,
|
||||||
Cmd.ARG_INSTANCE: doInfoInstance,
|
Cmd.ARG_INSTANCE: doInfoInstance,
|
||||||
Cmd.ARG_GAL: doInfoGAL,
|
|
||||||
Cmd.ARG_GROUP: doInfoGroups,
|
Cmd.ARG_GROUP: doInfoGroups,
|
||||||
Cmd.ARG_GROUPMEMBERS: doInfoGroupMembers,
|
Cmd.ARG_GROUPMEMBERS: doInfoGroupMembers,
|
||||||
Cmd.ARG_INBOUNDSSOASSIGNMENT: doInfoInboundSSOAssignment,
|
Cmd.ARG_INBOUNDSSOASSIGNMENT: doInfoInboundSSOAssignment,
|
||||||
@@ -75626,7 +75657,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
'print':
|
'print':
|
||||||
(Act.PRINT,
|
(Act.PRINT,
|
||||||
{Cmd.ARG_ADDRESSES: doPrintAddresses,
|
{Cmd.ARG_ADDRESSES: doPrintAddresses,
|
||||||
Cmd.ARG_ADMINROLE: doPrintShowAdminRoles,
|
Cmd.ARG_ADMINROLE: doInfoPrintShowAdminRoles,
|
||||||
Cmd.ARG_ADMIN: doPrintShowAdmins,
|
Cmd.ARG_ADMIN: doPrintShowAdmins,
|
||||||
Cmd.ARG_ALERT: doPrintShowAlerts,
|
Cmd.ARG_ALERT: doPrintShowAlerts,
|
||||||
Cmd.ARG_ALERTFEEDBACK: doPrintShowAlertFeedback,
|
Cmd.ARG_ALERTFEEDBACK: doPrintShowAlertFeedback,
|
||||||
@@ -75678,7 +75709,6 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_DRIVELABEL: doPrintShowDriveLabels,
|
Cmd.ARG_DRIVELABEL: doPrintShowDriveLabels,
|
||||||
Cmd.ARG_DRIVELABELPERMISSION: doPrintShowDriveLabelPermissions,
|
Cmd.ARG_DRIVELABELPERMISSION: doPrintShowDriveLabelPermissions,
|
||||||
Cmd.ARG_FEATURE: doPrintShowFeatures,
|
Cmd.ARG_FEATURE: doPrintShowFeatures,
|
||||||
Cmd.ARG_GAL: doPrintShowGAL,
|
|
||||||
Cmd.ARG_GROUP: doPrintGroups,
|
Cmd.ARG_GROUP: doPrintGroups,
|
||||||
Cmd.ARG_GROUPMEMBERS: doPrintGroupMembers,
|
Cmd.ARG_GROUPMEMBERS: doPrintGroupMembers,
|
||||||
Cmd.ARG_GROUPTREE: doPrintShowGroupTree,
|
Cmd.ARG_GROUPTREE: doPrintShowGroupTree,
|
||||||
@@ -75759,7 +75789,7 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
),
|
),
|
||||||
'show':
|
'show':
|
||||||
(Act.SHOW,
|
(Act.SHOW,
|
||||||
{Cmd.ARG_ADMINROLE: doPrintShowAdminRoles,
|
{Cmd.ARG_ADMINROLE: doInfoPrintShowAdminRoles,
|
||||||
Cmd.ARG_ADMIN: doPrintShowAdmins,
|
Cmd.ARG_ADMIN: doPrintShowAdmins,
|
||||||
Cmd.ARG_ALERT: doPrintShowAlerts,
|
Cmd.ARG_ALERT: doPrintShowAlerts,
|
||||||
Cmd.ARG_ALERTFEEDBACK: doPrintShowAlertFeedback,
|
Cmd.ARG_ALERTFEEDBACK: doPrintShowAlertFeedback,
|
||||||
@@ -75796,7 +75826,6 @@ MAIN_COMMANDS_WITH_OBJECTS = {
|
|||||||
Cmd.ARG_DRIVELABEL: doPrintShowDriveLabels,
|
Cmd.ARG_DRIVELABEL: doPrintShowDriveLabels,
|
||||||
Cmd.ARG_DRIVELABELPERMISSION: doPrintShowDriveLabelPermissions,
|
Cmd.ARG_DRIVELABELPERMISSION: doPrintShowDriveLabelPermissions,
|
||||||
Cmd.ARG_FEATURE: doPrintShowFeatures,
|
Cmd.ARG_FEATURE: doPrintShowFeatures,
|
||||||
Cmd.ARG_GAL: doPrintShowGAL,
|
|
||||||
Cmd.ARG_GROUPMEMBERS: doShowGroupMembers,
|
Cmd.ARG_GROUPMEMBERS: doShowGroupMembers,
|
||||||
Cmd.ARG_GROUPTREE: doPrintShowGroupTree,
|
Cmd.ARG_GROUPTREE: doPrintShowGroupTree,
|
||||||
Cmd.ARG_GUARDIAN: doPrintShowGuardians,
|
Cmd.ARG_GUARDIAN: doPrintShowGuardians,
|
||||||
|
|||||||
@@ -616,7 +616,6 @@ class GamCLArgs():
|
|||||||
ARG_FORWARDS = 'forwards'
|
ARG_FORWARDS = 'forwards'
|
||||||
ARG_FORWARDINGADDRESS = 'forwardingaddress'
|
ARG_FORWARDINGADDRESS = 'forwardingaddress'
|
||||||
ARG_FORWARDINGADDRESSES = 'forwardingaddresses'
|
ARG_FORWARDINGADDRESSES = 'forwardingaddresses'
|
||||||
ARG_GAL = 'gal'
|
|
||||||
ARG_GCPFOLDER = 'gcpfolder'
|
ARG_GCPFOLDER = 'gcpfolder'
|
||||||
ARG_GCPSERVICEACCOUNT = 'gcpserviceaccount'
|
ARG_GCPSERVICEACCOUNT = 'gcpserviceaccount'
|
||||||
ARG_GMAIL = 'gmail'
|
ARG_GMAIL = 'gmail'
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -10,6 +10,19 @@ 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.06.14
|
||||||
|
|
||||||
|
Updated `create|update adminrole` to allow specifying a collection of privileges
|
||||||
|
with `privileges select <FileSelector>|<CSVFileSelector>` which makes copying roles much simpler.
|
||||||
|
|
||||||
|
Added option `role <RoleItem>` to `gam print|show adminroles` to allow display of information
|
||||||
|
for a specific role.
|
||||||
|
|
||||||
|
### 7.06.13
|
||||||
|
|
||||||
|
Updated `gam print group-members ... recursive` and `gam print cigroup-members ... recursive`
|
||||||
|
to expand groups representing chat spaces.
|
||||||
|
|
||||||
### 7.06.12
|
### 7.06.12
|
||||||
|
|
||||||
Deleted commands to display Analytic UA properties; the API has been deprecated.
|
Deleted commands to display Analytic UA properties; the API has been deprecated.
|
||||||
|
|||||||
@@ -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.06.12 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.06.14 - 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.4.1 x86_64
|
MacOS Sequoia 15.4.1 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.06.12 - https://github.com/GAM-team/GAM - pythonsource
|
GAM 7.06.14 - 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
|
||||||
|
|||||||
@@ -8,6 +8,7 @@
|
|||||||
- [Copy content of My Drive to a Shared Drive](#copy-content-of-my-drive-to-a-shared-drive)
|
- [Copy content of My Drive to a Shared Drive](#copy-content-of-my-drive-to-a-shared-drive)
|
||||||
- [Copy content of a Shared Drive to another Shared Drive](#copy-content-of-a-shared-drive-to-another-shared-drive)
|
- [Copy content of a Shared Drive to another Shared Drive](#copy-content-of-a-shared-drive-to-another-shared-drive)
|
||||||
- [Move files and folders](#move-files-and-folders)
|
- [Move files and folders](#move-files-and-folders)
|
||||||
|
- [Move My Drive folder to Shared Drive](#move-my-drive-folder-to-shared-drive)
|
||||||
- [Simple moves by changing parents](#simple-moves-by-changing-parents)
|
- [Simple moves by changing parents](#simple-moves-by-changing-parents)
|
||||||
- [Move with ownership change](#move-with-ownership-change)
|
- [Move with ownership change](#move-with-ownership-change)
|
||||||
- [Complex moves](#complex-moves)
|
- [Complex moves](#complex-moves)
|
||||||
@@ -428,6 +429,18 @@ gam user user@domain.com copy drivefile teamdriveid 0AC_1AB teamdriveparentid 0A
|
|||||||
```
|
```
|
||||||
|
|
||||||
## Move files and folders
|
## Move files and folders
|
||||||
|
## Move My Drive folder to Shared Drive
|
||||||
|
There are two methods for moving a folder from a My Drive to a Shared Drive:
|
||||||
|
* Drive UI - You can simple drag and drop the folder from the My Drive to the Shared Drive
|
||||||
|
* Google inspects the content of the folder and may not perform the move if:
|
||||||
|
* Files and folders within the selected folder are owned by users outside of your domain
|
||||||
|
* Files and folders within the selected folder are owned by other users inside of your domain but the owner of the original folder has only read access
|
||||||
|
* All folder and files IDs are preserved
|
||||||
|
* GAM
|
||||||
|
* The Drive API doesn't allow moving a folder from a My Drive to a Shared Drive; GAM has to recreate the folders on the Shared Drive, thus changing their IDs
|
||||||
|
* Files are simply moved from their existing My Drive folder to the recreated Shared Drive folder; their IDs do not change
|
||||||
|
* Files owmed by users outside of your domain can't be moved
|
||||||
|
|
||||||
## Simple moves by changing parents
|
## Simple moves by changing parents
|
||||||
Use this command in the following cases:
|
Use this command in the following cases:
|
||||||
* Move a file or folder from one location to another on My Drive
|
* Move a file or folder from one location to another on My Drive
|
||||||
|
|||||||
@@ -628,10 +628,15 @@ querytime5years -5y query "modifiedTime<'#querytime5years#'"
|
|||||||
|
|
||||||
## File selection of Shared Drive
|
## File selection of Shared Drive
|
||||||
You can limit the selection for files on a specific Shared drive.
|
You can limit the selection for files on a specific Shared drive.
|
||||||
Any query will be applied to the Shared drive.
|
|
||||||
```
|
```
|
||||||
select <SharedDriveEntity>
|
select <SharedDriveEntity>
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To apply a query to that Shared Drive.
|
||||||
|
```
|
||||||
|
select <SharedDriveEntity> shareddrivequery "xxx"
|
||||||
|
```
|
||||||
|
|
||||||
## File selection by corpora
|
## File selection by corpora
|
||||||
Select files by corpora.
|
Select files by corpora.
|
||||||
|
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ GAM7 version 6.50.00 or higher is required.
|
|||||||
|
|
||||||
## Disadvantages
|
## Disadvantages
|
||||||
* DASA accounts can only be delegated admins. [If a task requires super admin rights to perform](https://support.google.com/a/answer/2405986#:~:text=Only%20super%20administrators%20can...), DASA accounts won’t be able to do it.
|
* DASA accounts can only be delegated admins. [If a task requires super admin rights to perform](https://support.google.com/a/answer/2405986#:~:text=Only%20super%20administrators%20can...), DASA accounts won’t be able to do it.
|
||||||
Not all Google Admin APIs work with DASA right now. For example, Google Vault API calls will fail with a DASA account.
|
Not all Google Admin APIs work with DASA right now. For example, Google Vault API calls will fail with a DASA account; Classroom API calls do not return data.
|
||||||
* DASA is a delegated admin and can make Workspace / Cloud Identity admin API calls, it does not replace domain-wide delegation (DwD) when using GAM7 commands that interact with Gmail, Drive and Calendar user data.
|
* DASA is a delegated admin and can make Workspace / Cloud Identity admin API calls, it does not replace domain-wide delegation (DwD) when using GAM7 commands that interact with Gmail, Drive and Calendar user data.
|
||||||
* GAM7 support for DASA is still experimental and some things may fail. Please report your findings to the [GAM group](https://groups.google.com/g/google-apps-manager).
|
* GAM7 support for DASA is still experimental and some things may fail. Please report your findings to the [GAM group](https://groups.google.com/g/google-apps-manager).
|
||||||
|
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ k
|
|||||||
Print the current version of Gam with details
|
Print the current version of Gam with details
|
||||||
```
|
```
|
||||||
gam version
|
gam version
|
||||||
GAM 7.06.12 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.06.14 - 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.4.1 x86_64
|
MacOS Sequoia 15.4.1 x86_64
|
||||||
@@ -16,7 +16,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.06.12 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.06.14 - 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.4.1 x86_64
|
MacOS Sequoia 15.4.1 x86_64
|
||||||
@@ -28,7 +28,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.06.12 - https://github.com/GAM-team/GAM - pyinstaller
|
GAM 7.06.14 - 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.4.1 x86_64
|
MacOS Sequoia 15.4.1 x86_64
|
||||||
@@ -65,7 +65,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.06.12
|
Latest: 7.06.14
|
||||||
echo $?
|
echo $?
|
||||||
1
|
1
|
||||||
```
|
```
|
||||||
@@ -73,7 +73,7 @@ echo $?
|
|||||||
Print the current version number without details
|
Print the current version number without details
|
||||||
```
|
```
|
||||||
gam version simple
|
gam version simple
|
||||||
7.06.12
|
7.06.14
|
||||||
```
|
```
|
||||||
In Linux/MacOS you can do:
|
In Linux/MacOS you can do:
|
||||||
```
|
```
|
||||||
@@ -83,7 +83,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.06.12 - https://github.com/GAM-team/GAM
|
GAM 7.06.14 - 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.4.1 x86_64
|
MacOS Sequoia 15.4.1 x86_64
|
||||||
|
|||||||
Reference in New Issue
Block a user