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

How to create large number of users?

aagarwal
Newbie

How to create large number of users?

How can we create a large number of users ?

2 REPLIES 2

Re: How to create large number of users?

With CreateUser code snippet?

var params = {

  password: undefined /* STRING */,

  name: undefined /* STRING */,

  description: undefined /* STRING */,

  tags: undefined /* TAGS */

};

// no return

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

Re: How to create large number of users?

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

Check out the upcoming Expert Session: Understanding ThingWorx Navigate Licensing in Community "Customer Events" section.