0.1.0 • Published 5 years ago
ubborg-add-osusers-to-groups v0.1.0
ubborg-add-osusers-to-groups
Simplify adding existing osUsers to groups.
API
This module exports one function:
addUsers(loginNames, grNames[, bun, opt])
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.
Usage
see test/basics.js
Known issues
- Needs more/better tests and docs.
License
ISC
0.1.0
5 years ago