Skip to contents

Retrieves the usernames of people in an Organization

Usage

get_org_members_list(
  org,
  filter = c("all", "2fa_disabled"),
  role = c("all", "admin", "member")
)

Arguments

org

Name of the organization

filter

Filter members returned in the list. Can be one of: `"2fa_disabled"` or `"all"`. Default: `"all"`

role

Filter members returned by their role. Can be one of: `"all"`, `"admin"`, or `"member"`. Default: `"all"`

Filter

- `"2fa_disabled"` - All members the authenticated user can see. - `"all"` - Members without two-factor authentication enabled. Available for organization owners.

Members List

- `"all"` - All members of the organization, regardless of role. - `"admin"` - Organization owners. - `"member"` - Non-owner organization members.

References

<https://developer.github.com/v3/orgs/members/#members-list>