<!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;">&#160;</p><p>I tried with the same solution added a user group named "user"&#160; in LoadGroups.mvel</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>as follows</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>groups = [ 'knightsTempler' : new Group( "Knights Templer" ),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'crusaders' : new Group( "Crusaders" ),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'HR' : new Group( "HR" ),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'PM' : new Group( "PM" ),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'sales' : new Group( "sales" ),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'user' : new Group( "user" )</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; ];</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>return groups;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Also added&#160; the following in LoadUsers.mvel</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>users = [ 'darth'&#160; : new User('Darth Vader'),&#160; </p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'bobba'&#160; : new User( 'Bobba Fet'),&#160;&#160;&#160;&#160; 'jabba'&#160;&#160;&#160;&#160;&#160; : new User('Jabba Hutt'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'dalai'&#160; : new User('Dalai Lama'),&#160;&#160;&#160;&#160; 'christoper' : new User('Christoper Columbus'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'stuart' : new User('Stuart Little'),&#160; 'jane'&#160;&#160;&#160;&#160;&#160;&#160; : new User('Jane Austin'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'peter'&#160; : new User('Peter Parker'),&#160;&#160; 'steve'&#160;&#160;&#160;&#160;&#160; : new User('Steve Rogers'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'sly'&#160;&#160;&#160; : new User('Sly Stalone'),&#160;&#160;&#160; 'liz'&#160;&#160;&#160;&#160;&#160;&#160;&#160; : new User('Elizabeth Windsor'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'bruce'&#160; : new User('Bruce Wayne' ),&#160;&#160; 'tony'&#160;&#160;&#160;&#160;&#160;&#160; : new User('Tony Stark'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'luke'&#160;&#160; : new User('Luke Cage'),&#160;&#160;&#160;&#160;&#160; 'admin'&#160;&#160;&#160;&#160;&#160; : new User('Administrator'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'krisv'&#160; : new User('krisv'),&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'john'&#160;&#160;&#160;&#160;&#160;&#160; : new User('john'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'mary'&#160;&#160; : new User('mary'),&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'sales'&#160;&#160;&#160;&#160;&#160; : new User('sales-rep'),</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'sachin' : new User('sachin'),&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; 'sachin1'&#160;&#160;&#160; : new User('sachin1')</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; ];&#160;&#160;&#160;&#160;&#160;&#160; </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>return users;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</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;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>and also done the changes in roles.properties</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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;">&#160;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Need some help.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</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>