Four changes (#1471)

* Three changes

Document:
gam <UserTypeEntity> show vaultholds|holds
hidden <Boolean> for update teamsrive

Fix showHoldsForUsers

* Standardize update teamdrive input of orgUnitId

* One too many =
This commit is contained in:
Ross Scroggs
2022-01-15 01:01:09 -08:00
committed by GitHub
parent 303e32fe5d
commit 39db76f189
3 changed files with 6 additions and 3 deletions

View File

@@ -8220,8 +8220,8 @@ def doUpdateTeamDrive(users):
elif myarg == 'asadmin':
useDomainAdminAccess = True
i += 1
elif myarg in ['ou', 'orgunit']:
body['orgUnitId'] = sys.argv[i+1]
elif myarg in ['ou', 'org', 'orgunit']:
body['orgUnitId'] = gapi_directory_orgunits.getOrgUnitId(sys.argv[i + 1])
i += 2
elif myarg in ['hidden']:
if getBoolean(sys.argv[i+1], myarg):

View File

@@ -685,8 +685,9 @@ def showHoldsForUsers(users):
print(f'FOUND: User\'s OrgUnit is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
else:
for account in hold.get('accounts', []):
if user in account.get('email', '').lower():
if user == account.get('email', '').lower():
print(f'FOUND: User account is on hold in matterId {matterId} and holdId {hold["holdId"]} named "{hold["name"]}"')
break
def updateMatter(action=None):