How can we help?

npm Integration

Tal Bereznitskey
Tal Bereznitskey
  • Updated

Overview

Torii integrates with npm and syncs:

User Fields License Types
Username npm
Status  
Role  
  • Torii supports syncing multiple npm accounts.
  • This integration does not provide the email address of the user, but only their username.
  • You can constantly stay updated with application information from our Integrations Page
    >> Integration Capabilities button >> Integration Capabilities table.

Requirements

Accounts & Permissions

  • To connect this integration, we require the following (generated by an npm team admin):
    • Organization Name
    • API Token

How to Generate the Required Values

1. Ensure you have access to the relevant npm organization and have team admin permissions.
2. Find the Organization Name:

  • Use the organization name as it appears in npm (the organization “slug”). This is listed on the left side under Organizations. In this example, it is "acme".

3. Generate an API Token:

  • Follow the instructions in npm’s access token documentation. The main steps are to go to the npm Access Tokens page, click Generate token and configure it:
    • Token name: torii-integration
    • Make sure the Bypass two-factor authentication (2FA) checkbox stays unchecked. This configuration is only required for integrations that supports write actions.
    • Set the Permissions to No access. Set the Organizations to Read only and choose your organization
    • No access to packages is required
    • Set the expiration date to at least 90 days, or more using the custom option
    • Click Generate token
    • Copy the generated npm API Token

How to Connect the Integration

  1. Go to the Integrations page in Torii.
  2. Select the npm tile.
  3. Click Connect.
  4. Enter the required values:
    • Organization Name
    • API Token
  5. Click Connect to finalize the integration.
  6. Once the integration is connected and synced, a green checkbox will appear next to the integration.
     

For any further questions, please contact Torii Support.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request