11cb0ef41Sopenharmony_ci--- 21cb0ef41Sopenharmony_cititle: orgs 31cb0ef41Sopenharmony_cisection: 7 41cb0ef41Sopenharmony_cidescription: Working with Teams & Orgs 51cb0ef41Sopenharmony_ci--- 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ci### Description 81cb0ef41Sopenharmony_ci 91cb0ef41Sopenharmony_ciThere are three levels of org users: 101cb0ef41Sopenharmony_ci 111cb0ef41Sopenharmony_ci1. Super admin, controls billing & adding people to the org. 121cb0ef41Sopenharmony_ci2. Team admin, manages team membership & package access. 131cb0ef41Sopenharmony_ci3. Developer, works on packages they are given access to. 141cb0ef41Sopenharmony_ci 151cb0ef41Sopenharmony_ciThe 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. 161cb0ef41Sopenharmony_ci 171cb0ef41Sopenharmony_ciThe 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. 181cb0ef41Sopenharmony_ci 191cb0ef41Sopenharmony_ciThe developer will be able to access packages based on the teams they are on. Access is either read-write or read-only. 201cb0ef41Sopenharmony_ci 211cb0ef41Sopenharmony_ciThere are two main commands: 221cb0ef41Sopenharmony_ci 231cb0ef41Sopenharmony_ci1. `npm team` see [npm team](/commands/npm-team) for more details 241cb0ef41Sopenharmony_ci2. `npm access` see [npm access](/commands/npm-access) for more details 251cb0ef41Sopenharmony_ci 261cb0ef41Sopenharmony_ci### Team Admins create teams 271cb0ef41Sopenharmony_ci 281cb0ef41Sopenharmony_ci* Check who you’ve added to your org: 291cb0ef41Sopenharmony_ci 301cb0ef41Sopenharmony_ci```bash 311cb0ef41Sopenharmony_cinpm team ls <org>:developers 321cb0ef41Sopenharmony_ci``` 331cb0ef41Sopenharmony_ci 341cb0ef41Sopenharmony_ci* 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. 351cb0ef41Sopenharmony_ci 361cb0ef41Sopenharmony_ci* Create a new team: 371cb0ef41Sopenharmony_ci 381cb0ef41Sopenharmony_ci```bash 391cb0ef41Sopenharmony_cinpm team create <org:team> 401cb0ef41Sopenharmony_ci``` 411cb0ef41Sopenharmony_ci 421cb0ef41Sopenharmony_ci* Add members to that team: 431cb0ef41Sopenharmony_ci 441cb0ef41Sopenharmony_ci```bash 451cb0ef41Sopenharmony_cinpm team add <org:team> <user> 461cb0ef41Sopenharmony_ci``` 471cb0ef41Sopenharmony_ci 481cb0ef41Sopenharmony_ci### Publish a package and adjust package access 491cb0ef41Sopenharmony_ci 501cb0ef41Sopenharmony_ci* In package directory, run 511cb0ef41Sopenharmony_ci 521cb0ef41Sopenharmony_ci```bash 531cb0ef41Sopenharmony_cinpm init --scope=<org> 541cb0ef41Sopenharmony_ci``` 551cb0ef41Sopenharmony_cito scope it for your org & publish as usual 561cb0ef41Sopenharmony_ci 571cb0ef41Sopenharmony_ci* Grant access: 581cb0ef41Sopenharmony_ci 591cb0ef41Sopenharmony_ci```bash 601cb0ef41Sopenharmony_cinpm access grant <read-only|read-write> <org:team> [<package>] 611cb0ef41Sopenharmony_ci``` 621cb0ef41Sopenharmony_ci 631cb0ef41Sopenharmony_ci* Revoke access: 641cb0ef41Sopenharmony_ci 651cb0ef41Sopenharmony_ci```bash 661cb0ef41Sopenharmony_cinpm access revoke <org:team> [<package>] 671cb0ef41Sopenharmony_ci``` 681cb0ef41Sopenharmony_ci 691cb0ef41Sopenharmony_ci### Monitor your package access 701cb0ef41Sopenharmony_ci 711cb0ef41Sopenharmony_ci* See what org packages a team member can access: 721cb0ef41Sopenharmony_ci 731cb0ef41Sopenharmony_ci```bash 741cb0ef41Sopenharmony_cinpm access ls-packages <org> <user> 751cb0ef41Sopenharmony_ci``` 761cb0ef41Sopenharmony_ci 771cb0ef41Sopenharmony_ci* See packages available to a specific team: 781cb0ef41Sopenharmony_ci 791cb0ef41Sopenharmony_ci```bash 801cb0ef41Sopenharmony_cinpm access ls-packages <org:team> 811cb0ef41Sopenharmony_ci``` 821cb0ef41Sopenharmony_ci 831cb0ef41Sopenharmony_ci* Check which teams are collaborating on a package: 841cb0ef41Sopenharmony_ci 851cb0ef41Sopenharmony_ci```bash 861cb0ef41Sopenharmony_cinpm access ls-collaborators <pkg> 871cb0ef41Sopenharmony_ci``` 881cb0ef41Sopenharmony_ci 891cb0ef41Sopenharmony_ci### See also 901cb0ef41Sopenharmony_ci 911cb0ef41Sopenharmony_ci* [npm team](/commands/npm-team) 921cb0ef41Sopenharmony_ci* [npm access](/commands/npm-access) 931cb0ef41Sopenharmony_ci* [npm scope](/using-npm/scope) 94