public void addUserToRole(String user, String role) throws CmsException {

        OpenCms.getRoleManager().addUserToRole(m_cms, CmsRole.valueOfRoleName(role), user);
    }
public void addUserToRole ( String user , String role ) throws CmsException { OpenCms . getRoleManager ( ) . addUserToRole ( m_cms , CmsRole . valueOfRoleName ( role ) , user ) ; }
Add the user to the given role.<p>

@param user name of the user
@param role name of the role, for example 'EDITOR'

@throws CmsException if something goes wrong