question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

How add user to group existent with Python

See original GitHub issue

Hello,

How I can add user to an specific group?

I tryed this: content = { 'groupKey': 'mygroup@example.com', "email": "new.user@example.com" } add_group = service.members().insert(content=content).execute()

But i receive this error:

env/lib/python3.8/site-packages/googleapiclient/discovery.py", line 872, in method raise TypeError('Got an unexpected keyword argument "%s"' % name)

My new.user is added normaly, just add that user to a group that is not working.

Thanks

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
KelvinFerrazcommented, Sep 11, 2020

@busunkim96

Thank you very much!

I did configure again, used this configuration:

image

It’s working now

0reactions
KelvinFerrazcommented, Sep 11, 2020

@busunkim96

I’m check and I use admin.directory.user:

# If modifying these scopes, delete the file token.pickle.
SCOPES = ['https://www.googleapis.com/auth/admin.directory.user']

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS IAM Python script - Add new User to existing Group
My issue is that I wish to add the new User to one of the existing, shown Groups. I have tried the code...
Read more >
Add users to group through python code - Odoo
Hai to all, I will create a group '*Commission*' through *xml*. then there is any way to add users to this group through...
Read more >
StartingYourUsersGroup - Python Wiki
Creating a new Python user group (You should have checked LocalUserGroups to ensure that there is not an existing group already).
Read more >
How to Add User to Linux Group - phoenixNAP
Add an Existing User to an Existing Group · 1. Use the adduser command to add a user to a group: sudo adduser...
Read more >
Add people to your group - Google Groups Help
Child accounts—You can't add a user with a child Google Account to a ... or alternate address of an existing member, that user...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found