copy security role

 2 Replies
 0 Subscribed to this topic
 16 Subscribed to this forum
Sort:
Author
Messages
RobertL
Basic Member Send Private Message
Posts: 17
Basic Member
After I copied LS security from Production to Development, I found out I have the security roles but I don't see any security classes with the roles. Do I need to manually assign the classes to the roles in Development ?

If there is a command to copy the security roles, please show me the command and syntax. Thanks.
MattD
Veteran Member Send Private Message
Posts: 94
Veteran Member
What version of Lawson are you on?
MattD
Veteran Member Send Private Message
Posts: 94
Veteran Member
If you are on LSF 9.0.0.7 or higher you can use the below commands to copy a complete profile, including the links from roles to security classes.

lsdump [-f filename] PROFILE [profileid] [-addRoleMapping]

lsload PROFILE filename [-p newProfileId] [-d definitionProductLine] [-a activeDataSource] [-addRoleMapping]

If you are on a version below this, unfortunately there is no Lawson delivered command to copy all roles and security classes while maintaining the links. You can dump/load the roles and security classes separately and then link the two. You can also use the Profile command to do this, but I would suggest moving them separately if you are not on 9.0.0.7 or higher.