Skip to content

mk-pmb/ubborg-add-osusers-to-groups-js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Simplify adding existing osUsers to groups.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published