Auth0 Home Blog Docs

Create new user and add to Authorization Extension V2 groups with api?



Hi, I am new to Auth0, I’m a Stormpath user looking to migrate to Auth0

I am starting to create a user creation/update details scripts using nodejs using the “node-auth0” library.
It’s a standalone CSV to new users script and working quite well so far.

For my web app I need to have different groups/roles and I have added “Authorization Extension v2”.

What’s the best way to script assigning users to groups/roles and maybe changing these memberships?



OK i think I have worked out how to do it.

**doesn’t seem to be too much validation, i was able to break groups by adding invalid users.

For nodejs:

var request = require("request");
var options = {
    method: '{GET|POST|DELETE|PATCH}',
    url: 'https://{authorization extension url }/api/{api call}',
    headers: {
        authorization: 'Bearer {api_key}'
    body: {json_data}, //optional 
    json: true //optional 

request(options, function(error, response, body) {
    if (error) throw new Error(error);


Does this exist within the either .NET SDKs?