Adding a webuser programatically

From OpenCms Wiki
Revision as of 16:43, 13 June 2007 by Pam (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The default guest user has permissions to create a new webuser.

Example: CmsDefaultUsers defaultUsers = new CmsDefaultUsers(); CmsObject obj= OpenCms.initCmsObject(cmsUsers.getUserGuest()); CmsUser user = obj.addWebUser(userId, password, group, "Web User", new Hashtable() ); obj.writeWebUser(user);


The new hashtable is the additional information that OpenCms can store about a user.

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox