11cb0ef41Sopenharmony_ci---
21cb0ef41Sopenharmony_cititle: npm-org
31cb0ef41Sopenharmony_cisection: 1
41cb0ef41Sopenharmony_cidescription: Manage orgs
51cb0ef41Sopenharmony_ci---
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ci### Synopsis
81cb0ef41Sopenharmony_ci
91cb0ef41Sopenharmony_ci```bash
101cb0ef41Sopenharmony_cinpm org set orgname username [developer | admin | owner]
111cb0ef41Sopenharmony_cinpm org rm orgname username
121cb0ef41Sopenharmony_cinpm org ls orgname [<username>]
131cb0ef41Sopenharmony_ci
141cb0ef41Sopenharmony_cialias: ogr
151cb0ef41Sopenharmony_ci```
161cb0ef41Sopenharmony_ci
171cb0ef41Sopenharmony_ciNote: This command is unaware of workspaces.
181cb0ef41Sopenharmony_ci
191cb0ef41Sopenharmony_ci### Example
201cb0ef41Sopenharmony_ci
211cb0ef41Sopenharmony_ciAdd a new developer to an org:
221cb0ef41Sopenharmony_ci
231cb0ef41Sopenharmony_ci```bash
241cb0ef41Sopenharmony_ci$ npm org set my-org @mx-smith
251cb0ef41Sopenharmony_ci```
261cb0ef41Sopenharmony_ci
271cb0ef41Sopenharmony_ciAdd a new admin to an org (or change a developer to an admin):
281cb0ef41Sopenharmony_ci
291cb0ef41Sopenharmony_ci```bash
301cb0ef41Sopenharmony_ci$ npm org set my-org @mx-santos admin
311cb0ef41Sopenharmony_ci```
321cb0ef41Sopenharmony_ci
331cb0ef41Sopenharmony_ciRemove a user from an org:
341cb0ef41Sopenharmony_ci
351cb0ef41Sopenharmony_ci```bash
361cb0ef41Sopenharmony_ci$ npm org rm my-org mx-santos
371cb0ef41Sopenharmony_ci```
381cb0ef41Sopenharmony_ci
391cb0ef41Sopenharmony_ciList all users in an org:
401cb0ef41Sopenharmony_ci
411cb0ef41Sopenharmony_ci```bash
421cb0ef41Sopenharmony_ci$ npm org ls my-org
431cb0ef41Sopenharmony_ci```
441cb0ef41Sopenharmony_ci
451cb0ef41Sopenharmony_ciList all users in JSON format:
461cb0ef41Sopenharmony_ci
471cb0ef41Sopenharmony_ci```bash
481cb0ef41Sopenharmony_ci$ npm org ls my-org --json
491cb0ef41Sopenharmony_ci```
501cb0ef41Sopenharmony_ci
511cb0ef41Sopenharmony_ciSee what role a user has in an org:
521cb0ef41Sopenharmony_ci
531cb0ef41Sopenharmony_ci```bash
541cb0ef41Sopenharmony_ci$ npm org ls my-org @mx-santos
551cb0ef41Sopenharmony_ci```
561cb0ef41Sopenharmony_ci
571cb0ef41Sopenharmony_ci### Description
581cb0ef41Sopenharmony_ci
591cb0ef41Sopenharmony_ciYou can use the `npm org` commands to manage and view users of an
601cb0ef41Sopenharmony_ciorganization.  It supports adding and removing users, changing their roles,
611cb0ef41Sopenharmony_cilisting them, and finding specific ones and their roles.
621cb0ef41Sopenharmony_ci
631cb0ef41Sopenharmony_ci### Configuration
641cb0ef41Sopenharmony_ci
651cb0ef41Sopenharmony_ci#### `registry`
661cb0ef41Sopenharmony_ci
671cb0ef41Sopenharmony_ci* Default: "https://registry.npmjs.org/"
681cb0ef41Sopenharmony_ci* Type: URL
691cb0ef41Sopenharmony_ci
701cb0ef41Sopenharmony_ciThe base URL of the npm registry.
711cb0ef41Sopenharmony_ci
721cb0ef41Sopenharmony_ci
731cb0ef41Sopenharmony_ci
741cb0ef41Sopenharmony_ci#### `otp`
751cb0ef41Sopenharmony_ci
761cb0ef41Sopenharmony_ci* Default: null
771cb0ef41Sopenharmony_ci* Type: null or String
781cb0ef41Sopenharmony_ci
791cb0ef41Sopenharmony_ciThis is a one-time password from a two-factor authenticator. It's needed
801cb0ef41Sopenharmony_ciwhen publishing or changing package permissions with `npm access`.
811cb0ef41Sopenharmony_ci
821cb0ef41Sopenharmony_ciIf not set, and a registry response fails with a challenge for a one-time
831cb0ef41Sopenharmony_cipassword, npm will prompt on the command line for one.
841cb0ef41Sopenharmony_ci
851cb0ef41Sopenharmony_ci
861cb0ef41Sopenharmony_ci
871cb0ef41Sopenharmony_ci#### `json`
881cb0ef41Sopenharmony_ci
891cb0ef41Sopenharmony_ci* Default: false
901cb0ef41Sopenharmony_ci* Type: Boolean
911cb0ef41Sopenharmony_ci
921cb0ef41Sopenharmony_ciWhether or not to output JSON data, rather than the normal output.
931cb0ef41Sopenharmony_ci
941cb0ef41Sopenharmony_ci* In `npm pkg set` it enables parsing set values with JSON.parse() before
951cb0ef41Sopenharmony_ci  saving them to your `package.json`.
961cb0ef41Sopenharmony_ci
971cb0ef41Sopenharmony_ciNot supported by all npm commands.
981cb0ef41Sopenharmony_ci
991cb0ef41Sopenharmony_ci
1001cb0ef41Sopenharmony_ci
1011cb0ef41Sopenharmony_ci#### `parseable`
1021cb0ef41Sopenharmony_ci
1031cb0ef41Sopenharmony_ci* Default: false
1041cb0ef41Sopenharmony_ci* Type: Boolean
1051cb0ef41Sopenharmony_ci
1061cb0ef41Sopenharmony_ciOutput parseable results from commands that write to standard output. For
1071cb0ef41Sopenharmony_ci`npm search`, this will be tab-separated table format.
1081cb0ef41Sopenharmony_ci
1091cb0ef41Sopenharmony_ci
1101cb0ef41Sopenharmony_ci
1111cb0ef41Sopenharmony_ci### See Also
1121cb0ef41Sopenharmony_ci
1131cb0ef41Sopenharmony_ci* [using orgs](/using-npm/orgs)
1141cb0ef41Sopenharmony_ci* [Documentation on npm Orgs](https://docs.npmjs.com/orgs/)
115