Devpi's docs for the --restrict-modify param specify that in addition to specifying access rights for a user, access rights can also be modified for a group:
specify which users/groups may create other users and their indices. Multiple users and groups are separated by commas. Groups need to be prefixed with a colon like this: ':group'. [...]
There's no documentation about how to actually create a group, though; is this integrated directly with the Unix groups available on the host machine?
The
devpiserver does not do any group management itself. Instead, it delegates it to the auth plugins. Take a look at thedevpiserver_auth_userhookspec:AFAIK currently there is only plugin using groups:
devpi-ldap, check out its code for usage example.As for binding the access rights to unix groups, you could easily write such an auth plugin yourself. Here is a dumb example of a plugin that does not do any real auth, only returning the unix groups the user requesting access belongs to:
Now add
devpi's entry point in the plugin's setup script and you're good to go: