Skip to main content
1-Visitor
March 30, 2016
Question

How to create large number of users?

  • March 30, 2016
  • 2 replies
  • 1163 views

How can we create a large number of users ?

    2 replies

    1-Visitor
    March 30, 2016

    With CreateUser code snippet?

    var params = {

      password: undefined /* STRING */,

      name: undefined /* STRING */,

      description: undefined /* STRING */,

      tags: undefined /* TAGS */

    };

    // no return

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

    1-Visitor
    March 31, 2016

    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)