cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to create large number of users?

aagarwal
1-Newbie

How to create large number of users?

How can we create a large number of users ?

2 REPLIES 2

With CreateUser code snippet?

var params = {

  password: undefined /* STRING */,

  name: undefined /* STRING */,

  description: undefined /* STRING */,

  tags: undefined /* TAGS */

};

// no return

Resources["EntityServices"].CreateUser(params);

here is a sample code just to see the creation of users:

for(var i=0;i<10;i++)//will create 10 user: user0,user1....user9

{

  var params = {

     password: 'user'+i,

  name: 'user'+i,

  description: undefined,

  tags: undefined,

  };

  Resources["EntityServices"].CreateUser(params);

}

But what will the use case for large no of user creation?

(if it is for authentication of user from an LDAP, there is better approach)

Top Tags