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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

How to create large number of users?

aagarwal
1-Visitor

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)

Announcements


Top Tags