2 Replies Latest reply on Mar 31, 2016 9:08 AM by athounaojamamarjit@gmail.com RSS
    aagarwal Explorer

    How to create large number of users?

    How can we create a large number of users ?

      • Re: How to create large number of users?
        carlesc Ninja

        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?
          athounaojamamarjit@gmail.com Apprentice

          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)