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

Role is None instead of admin #2922

Open
nitang22 opened this issue Mar 16, 2024 · 1 comment
Open

Role is None instead of admin #2922

nitang22 opened this issue Mar 16, 2024 · 1 comment

Comments

@nitang22
Copy link

Why is my role None instead of admin?

from github import Github
from github import Auth

auth = Auth.Token("")
g = Github(auth=auth)
for user in g.get_organization('xxxx').get_members():
    print(f'username: {user.login}, role: {user.role}')

Output

username: nitang22, role: None

Additionally, can we retrieve a list of pending members?

@nitang22
Copy link
Author

Same as #1477

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant