Configuring the security roles in templates