• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2section: using-npm
3title: orgs
4description: Working with Teams & Orgs
5---
6
7# orgs(7)
8
9## Working with Teams & Orgs
10
11### Description
12
13There are three levels of org users:
14
151. Super admin, controls billing & adding people to the org.
162. Team admin, manages team membership & package access.
173. Developer, works on packages they are given access to.
18
19The super admin is the only person who can add users to the org because it impacts the monthly bill. The super admin will use the website to manage membership. Every org has a `developers` team that all users are automatically added to.
20
21The team admin is the person who manages team creation, team membership, and package access for teams. The team admin grants package access to teams, not individuals.
22
23The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.
24
25There are two main commands:
26
271. `npm team` see [npm team](/cli-commands/npm-team) for more details
282. `npm access` see [npm access](/cli-commands/npm-access) for more details
29
30### Team Admins create teams
31
32* Check who you’ve added to your org:
33
34```bash
35npm team ls <org>:developers
36```
37
38* Each org is automatically given a `developers` team, so you can see the whole list of team members in your org. This team automatically gets read-write access to all packages, but you can change that with the `access` command.
39
40* Create a new team:
41
42```bash
43npm team create <org:team>
44```
45
46* Add members to that team:
47
48```bash
49npm team add <org:team> <user>
50```
51
52### Publish a package and adjust package access
53
54* In package directory, run
55
56```bash
57npm init --scope=<org>
58```
59to scope it for your org & publish as usual
60
61* Grant access:
62
63```bash
64npm access grant <read-only|read-write> <org:team> [<package>]
65```
66
67* Revoke access:
68
69```bash
70npm access revoke <org:team> [<package>]
71```
72
73### Monitor your package access
74
75* See what org packages a team member can access:
76
77```bash
78npm access ls-packages <org> <user>
79```
80
81* See packages available to a specific team:
82
83```bash
84npm access ls-packages <org:team>
85```
86
87* Check which teams are collaborating on a package:
88
89```bash
90npm access ls-collaborators <pkg>
91```
92
93### See also
94
95* [npm team](/cli-commands/npm-team)
96* [npm access](/cli-commands/npm-access)
97* [npm scope](/using-npm/scope)
98