# ubborg-add-osusers-to-groups

> Simplify adding existing osUsers to groups.

Latest version **0.1.0** (published 2020-12-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install ubborg-add-osusers-to-groups
pnpm add ubborg-add-osusers-to-groups
yarn add ubborg-add-osusers-to-groups
bun add ubborg-add-osusers-to-groups
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2020-12-01 |
| First published | 2020-12-01 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 3.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | M.K. |
| Maintainers | mk-pmb |
| Keywords | group, osuser, ubborg |

## Links

- npm: https://www.npmjs.com/package/ubborg-add-osusers-to-groups
- Repository: https://github.com/mk-pmb/ubborg-add-osusers-to-groups-js
- Homepage: https://github.com/mk-pmb/ubborg-add-osusers-to-groups-js/#readme
- Issues: https://github.com/mk-pmb/ubborg-add-osusers-to-groups-js/issues
- npm.io page: https://npm.io/package/ubborg-add-osusers-to-groups

## Recent versions

- 0.1.0 (latest) — 2020-12-01

## README

<!--#echo json="package.json" key="name" underline="=" -->
ubborg-add-osusers-to-groups
============================
<!--/#echo -->

<!--#echo json="package.json" key="description" -->
Simplify adding existing osUsers to groups.
<!--/#echo -->



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](test/basics.js)


<!--#toc stop="scan" -->



Known issues
------------

* Needs more/better tests and docs.




&nbsp;


License
-------
<!--#echo json="package.json" key=".license" -->
ISC
<!--/#echo -->

---
_Source: https://npm.io/package/ubborg-add-osusers-to-groups · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
