Skip to content

Update Group allowExternalMembers not updating  #2344

Open
@adambarnett52

Description

@adambarnett52

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs more infoThis issue needs more information from the customer to proceed.type: questionRequest for information or clarification. Not an issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions