I was trying to update the delivery options for a user and was unable to do so with the following:
gam update group <group_name> update delivery digest user <user1>
I received the error "Missing required field: memberKey".
I was finally able to successfully update the delivery using user uid:<uid>
I tried again with a different user and was able to update user2 with the same command that failed with user1. What is different between those two accounts and how would I discover it/resolve it?
Thanks,
Wes
Debug below:
connect: (admin.googleapis.com, 443)
send: b'GET /$discovery/rest?version=directory_v1 HTTP/1.1\r\nHost: admin.googleapis.com\r\ncontent-length: 0\r\nuser-agent: GAM 7.00.32 - https://github.com/GAM-team/GAM / GAM Team <google-ap...@googlegroups.com> / Python 3.13.0 final / macOS-14.4.1-x86_64-i386-64bit-Mach-O x86_64 /\r\nx-goog-api-client: cred-type/u\r\nauthorization: Bearer ***\r\naccept-encoding: gzip, deflate\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 25 Mar 2025 15:01:56 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
send: b'GET /admin/directory/v1/groups/<group>%40collegedaleacademy.com?fields=email&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAM 7.00.32 - https://github.com/GAM-team/GAM / GAM Team <google-ap...@googlegroups.com> / Python 3.13.0 final / macOS-14.4.1-x86_64-i386-64bit-Mach-O x86_64 / (gzip)\r\nx-goog-api-client: gdcl/2.146.0 gl-python/3.13.0 cred-type/u\r\ncontent-length: 0\r\nauthorization: Bearer ***\r\n\r\n'
reply: 'HTTP/1.1 200 OK\r\n'
header: ETag: "***"
header: Content-Type: application/json; charset=UTF-8
header: Vary: Origin
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 25 Mar 2025 15:01:56 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
Group: <group>@collegedaleacademy.com, Update 1 Member
send: b'PATCH /admin/directory/v1/groups/<group>%40collegedaleacademy.com/members/<user1>%40collegedaleacademy.com?fields=&prettyPrint=true&alt=json HTTP/1.1\r\nHost: admin.googleapis.com\r\naccept: application/json\r\naccept-encoding: gzip, deflate\r\nuser-agent: GAM 7.00.32 - https://github.com/GAM-team/GAM / GAM Team <google-ap...@googlegroups.com> / Python 3.13.0 final / macOS-14.4.1-x86_64-i386-64bit-Mach-O x86_64 / (gzip)\r\nx-goog-api-client: gdcl/2.146.0 gl-python/3.13.0 cred-type/u\r\ncontent-type: application/json\r\ncontent-length: 31\r\nauthorization: Bearer ***\r\n\r\n'
send: b'{"delivery_settings": "DIGEST"}'
reply: 'HTTP/1.1 400 Bad Request\r\n'
header: Vary: Origin
header: Content-Type: application/json; charset=UTF-8
header: Vary: X-Origin
header: Vary: Referer
header: Content-Encoding: gzip
header: Date: Tue, 25 Mar 2025 15:01:56 GMT
header: Server: ESF
header: X-XSS-Protection: 0
header: X-Frame-Options: SAMEORIGIN
header: X-Content-Type-Options: nosniff
header: Alt-Svc: h3=":443"; ma=2592000,h3-29=":443"; ma=2592000
header: Transfer-Encoding: chunked
ERROR: JSON: {'error': {'code': 400, 'message': 'Missing required field: memberKey', 'errors': [{'message': 'Missing required field: memberKey', 'domain': 'global', 'reason': 'required'}]}}
Group: <group>@collegedaleacademy.com, Member: <user>@collegedaleacademy.com, Role Update Failed: Missing required field: memberKey