mirror of
https://github.com/GAM-team/GAM.git
synced 2026-07-03 20:31:35 +00:00
Fixed bug in `gam <UserTypeEntity> claim ownership
This commit is contained in:
@@ -1,4 +1,9 @@
|
|||||||
7.26.00
|
7.27.01
|
||||||
|
|
||||||
|
Fixed bug in `gam <UserTypeEntity> claim ownership <DriveFileEntity> ... onlyUsers|skipusers <UserTypeEntity>`
|
||||||
|
where the email addresses in `onlyUsers|skipusers <UserTypeEntity>` were not normalized.
|
||||||
|
|
||||||
|
7.27.00
|
||||||
|
|
||||||
Added `debug_redaction` Boolean variable to `gam.cfg`. When True, the default,
|
Added `debug_redaction` Boolean variable to `gam.cfg`. When True, the default,
|
||||||
sensitive data like access/refresh tokens, client secret and authorization codes
|
sensitive data like access/refresh tokens, client secret and authorization codes
|
||||||
|
|||||||
@@ -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.27.00'
|
__version__ = '7.27.01'
|
||||||
__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
|
||||||
@@ -64917,11 +64917,11 @@ def claimOwnership(users):
|
|||||||
elif myarg == 'onlyusers':
|
elif myarg == 'onlyusers':
|
||||||
_, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS)
|
_, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS)
|
||||||
checkOnly = True
|
checkOnly = True
|
||||||
onlyOwners = set(userList)
|
onlyOwners = {normalizeEmailAddressOrUID(user, noUid=True) for user in userList}
|
||||||
elif myarg == 'skipusers':
|
elif myarg == 'skipusers':
|
||||||
_, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS)
|
_, userList = getEntityToModify(defaultEntityType=Cmd.ENTITY_USERS)
|
||||||
checkSkip = len(userList) > 0
|
checkSkip = len(userList) > 0
|
||||||
skipOwners = set(userList)
|
skipOwners = {normalizeEmailAddressOrUID(user, noUid=True) for user in userList}
|
||||||
elif myarg == 'subdomains':
|
elif myarg == 'subdomains':
|
||||||
subdomains = getEntityList(Cmd.OB_DOMAIN_NAME_ENTITY)
|
subdomains = getEntityList(Cmd.OB_DOMAIN_NAME_ENTITY)
|
||||||
elif myarg == 'includetrashed':
|
elif myarg == 'includetrashed':
|
||||||
|
|||||||
Reference in New Issue
Block a user