<h1><ahref="../misc/npm-orgs.html">npm-orgs</a></h1><p>Working with Teams & Orgs</p>
<h2id="description">DESCRIPTION</h2>
<p>There are three levels of org users:</p>
<ol>
<li>Super admin, controls billing & adding people to the org.</li>
<li>Team admin, manages team membership & package access.</li>
<li>Developer, works on packages they are given access to. </li>
</ol>
<p>The 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 <code>developers</code> team that all users are automatically added to.</p>
<p>The 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.</p>
<p>The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.</p>
<li><p>Each org is automatically given a <code>developers</code> 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 <code>access</code> command.</p>
</li>
<li><p>Create a new team:</p>
</li>
</ul>
<pre><code>npm team create <org:team>
</code></pre><ul>
<li>Add members to that team:</li>
</ul>
<pre><code>npm team add <org:team><user>
</code></pre><h2id="publish-a-package-and-adjust-package-access">Publish a package and adjust package access</h2>
<ul>
<li>In package directory, run</li>
</ul>
<pre><code>npm init --scope=<org>
</code></pre><p>to scope it for your org & publish as usual</p>
<ul>
<li>Grant access: </li>
</ul>
<pre><code>npm access grant <read-only|read-write><org:team> [<package>]