Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Group allowExternalMembers not updating #2344

Open
adambarnett52 opened this issue Feb 26, 2024 · 1 comment
Open

Update Group allowExternalMembers not updating #2344

adambarnett52 opened this issue Feb 26, 2024 · 1 comment
Labels
needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.

Comments

@adambarnett52
Copy link

adambarnett52 commented Feb 26, 2024

Environment details

  • OS type and version: Rocky 9
  • Python version: Python 3.9.18
  • pip version: pip 22.0.4
  • google-api-python-client version: 2.118.0

Steps to reproduce

Run the below code and check the group settings after

Code example

creds = service_account.Credentials.from_service_account_file(
        g_key, scopes=['https://www.googleapis.com/auth/admin.directory.group', 'https://www.googleapis.com/auth/apps.groups.settings']
    )
    creds = creds.with_subject(admin_user + "@domain.com")
    service = build('admin', 'directory_v1', credentials=creds)


body=json.dumps({'allowExternalMembers': "False"})
service.groups().update(groupKey=group['email'],body=body).execute()

Stack trace

image

Making sure to follow these steps will guarantee the quickest resolution possible.

Thanks!

@parthea
Copy link
Contributor

parthea commented Mar 28, 2024

Please can you try to re-create the issue with the Try It section on this page and check whether the issue still exists? This helps to confirm if this is a client library issue or a API issue. If this is an issue with the API itself, we'll redirect you to the API support channel so you can get better quality answers. For the Admin API please see https://developers.google.com/admin-sdk/support.

@parthea parthea added type: question Request for information or clarification. Not an issue. needs more info This issue needs more information from the customer to proceed. labels Mar 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs more info This issue needs more information from the customer to proceed. type: question Request for information or clarification. Not an issue.
Projects
None yet
Development

No branches or pull requests

2 participants