On this page
grp.getgrall
Up: grp | Next: grp.getgrgid
Rel: grp.getgrgid, grp.getgrnam, grp.struct_group
Ref: docs.python.org — grp.getgrall
Tags: #public #python3 #stdlib #grp
Import
import grp
from grp import getgrall
Signature & Overview
grp.getgrall()
Return a list of all available group entries, in arbitrary order.
Usage
import grp
groups = grp.getgrall()
assert isinstance(groups, list) and len(groups) >= 1
Gotchas
- Unix-only: Can be slow on enterprise LDAP/Active Directory hosts with thousands of groups.
REPL Inspect
from grp import getgrall
help(getgrall)
Linked from
Related notes
- tuts/python3/stdlib_module/grp/getgrgid Linked here; links to this page; shared tags: #grp, #stdlib
- tuts/python3/stdlib_module/grp/getgrnam Linked here; links to this page; shared tags: #grp, #stdlib
- tuts/python3/stdlib_module/grp/struct_group Linked here; links to this page; shared tags: #grp, #stdlib
- tuts/python3/stdlib_module/grp Linked here; links to this page; shared tags: #stdlib
- tuts/c/stdlib shared tags: #stdlib
- tuts/c/stdlib/assert shared tags: #stdlib
- tuts/c/stdlib/assert/assert shared tags: #stdlib
- tuts/c/stdlib/assert/static_assert shared tags: #stdlib
- tuts/c/stdlib/ctype shared tags: #stdlib
- tuts/c/stdlib/ctype/isalpha shared tags: #stdlib