MCPcopy Create free account
hub / github.com/alephdata/aleph / groups

Function groups

aleph/manage.py:498–502  ·  view source on GitHub ↗

List all groups.

()

Source from the content-addressed store, hash-verified

496
497@cli.command()
498def groups():
499 """List all groups."""
500 authz = Authz.from_role(Role.load_cli_user())
501 all_groups = [(g.foreign_id, g.id, g.name) for g in Role.all_groups(authz)]
502 print(tabulate(all_groups, headers=["Foreign ID", "ID", "Name"]))
503
504
505@cli.command()

Callers

nothing calls this directly

Calls 3

from_roleMethod · 0.80
load_cli_userMethod · 0.80
all_groupsMethod · 0.80

Tested by

no test coverage detected