<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="https://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Re: Create new users in jBPM
</h3>
<span style="margin-bottom: 10px;">
created by <a href="https://community.jboss.org/people/chandrasachin16">Sachin Chandra</a> in <i>jBPM Development</i> - <a href="https://community.jboss.org/message/760517#760517">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi ,</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I tried with the same solution added a user group named "user"  in LoadGroups.mvel</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>as follows</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>groups = [ 'knightsTempler' : new Group( "Knights Templer" ),</p><p>           'crusaders' : new Group( "Crusaders" ),</p><p>           'HR' : new Group( "HR" ),</p><p>           'PM' : new Group( "PM" ),</p><p>           'sales' : new Group( "sales" ),</p><p>           'user' : new Group( "user" )</p><p>         ];</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>return groups;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Also added  the following in LoadUsers.mvel</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>users = [ 'darth'  : new User('Darth Vader'),  </p><p>          'bobba'  : new User( 'Bobba Fet'),     'jabba'      : new User('Jabba Hutt'),</p><p>          'dalai'  : new User('Dalai Lama'),     'christoper' : new User('Christoper Columbus'),</p><p>          'stuart' : new User('Stuart Little'),  'jane'       : new User('Jane Austin'),</p><p>          'peter'  : new User('Peter Parker'),   'steve'      : new User('Steve Rogers'),</p><p>          'sly'    : new User('Sly Stalone'),    'liz'        : new User('Elizabeth Windsor'),</p><p>          'bruce'  : new User('Bruce Wayne' ),   'tony'       : new User('Tony Stark'),</p><p>          'luke'   : new User('Luke Cage'),      'admin'      : new User('Administrator'),</p><p>          'krisv'  : new User('krisv'),          'john'       : new User('john'),</p><p>          'mary'   : new User('mary'),           'sales'      : new User('sales-rep'),</p><p>          'sachin' : new User('sachin'),         'sachin1'    : new User('sachin1')</p><p>        ];       </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>return users;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>I added two users sachin and sachin1 but after restarting the server i was not able to login with the user sachin. I had added the same user in user.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>admin=admin</p><p>krisv=krisv</p><p>john=john</p><p>mary=mary</p><p>sales-rep=sales-rep</p><p>sachin=sachin</p><p>sachin1=sachin1</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>and also done the changes in roles.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>admin=admin,manager,user</p><p>krisv=admin,manager,user</p><p>john=admin,manager,user,PM</p><p>mary=admin,manager,user,HR</p><p>sales-rep=admin,manager,user,sales</p><p>sachin=user</p><p>sachin1=user</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Need some help.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards</p><p>Sachin</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/760517#760517">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM Development at <a href="https://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2035">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>