Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

auth0-get-all-users

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

auth0-get-all-users

Helper for Auth0 API allowing to query unlimited amount of users

  • 1.1.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
43
increased by104.76%
Maintainers
1
Weekly downloads
 
Created
Source

Auth0 Get All Users

Purpose

Auth0's users API v3 has a limitation of 1000 users per query (source). This module allows you to get all the users and manage them in your program.

Usage

First, you need to install it with npm i auth0-get-all-users. Then:

const {ManagementClient} = require('auth0');
const getAllUsers = require('auth0-get-all-users');

const auth0 = new ManagementClient({
  // initialize management client with your credentials
});

const allUsers = await getAllUsers(auth0).asArray(/* export job options, manager options */);

asArray takes two parameters, both are optional.

First one contains options that are the same as user export job options.

Second one specifies export job manager behavior, specifically:

{
  checkInterval: number, // time in ms, specifies how often should we check in Auth0 if export job is completed, default is 1000
  checkRetries: number // maximum amount of retries the aforementioned check is performed, default is 30
}

How does it work?

Basically it creates user export job, downloads the results, uzips them, parses them as JSON and returns them to you.

Keywords

FAQs

Package last updated on 24 Apr 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc