0.1.0 • Published 3 years ago

ubborg-add-osusers-to-groups v0.1.0

Weekly downloads
1
License
ISC
Repository
github
Last release
3 years ago

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