Open
Description
Environment details
- OS type and version:
Ubuntu 20.04.5 LTS
- Python version:
3.8.13
- pip version:
22.0.4
google-api-python-client
version:2.27.0
Steps to reproduce
- Try to insert any email with a
+
sign into a group -> 404 Error - Exactly same code with an email without the
+
sign works -> 200.
Code example
...
service = build('admin', 'directory_v1', credentials=creds)
new_member = {'email': '<any email with + e.g. [email protected]'>, 'role': 'MEMBER'}
service.members().insert(groupKey=<group_id>, body=new_member).execute()
Stack trace
<HttpError 404 when requesting https://admin.googleapis.com/admin/directory/v1/groups/<group_id>/members?alt=json returned "Resource Not Found: [email protected]". Details: "[{'message': 'Resource Not Found: [email protected]', 'domain': 'global', 'reason': 'notFound'}]">
The same email when inserted via UI works.