Simplify adding existing osUsers to groups.
This module exports one function:
Return an array of osUserGroupMembership
specs for adding
users from list loginNames
to users in list grNames
.
Each of the lists should be array, but may also be string, in which
case it will be split by whitespace, comma and/or colon.
If bun
is truthy, it's assumed to be an ubborg bundle, and the
memberships will be requested on its behalf. In this case, the
resulting promise will be returned, with the specs array stored
in a property specs
on that promise.
opt
may be a dictionary object to override details of each spec.
see test/basics.js
- Needs more/better tests and docs.
ISC