Assigning profile to user

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
Expert Boarder
Expert Boarder
Posts: 140
Joined: Thu Dec 17, 2015 7:38 am

Assigning profile to user

Post by openkm_user »


There is no API available for creating user in OpenKM, so we used the following to write our own method, ... .java#L308

We would like to also do it for profile, can you please point us on the right direction?

Production Configuration: OpenKM Community 6.3.8 | Windows Server 2016 | Intel (R) Xeon (R) CPU E5-2670 2.60GHz | RAM: 80GB | 16 Core | MySQL 5.7.14 | Virtualized

Posts: 11162
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain

Re: Assigning profile to user

Post by jllort »

I will try to explain. Because OpenKM might work with several authentication providers ( OpenKM database, LDAP ) these methods not always will working ( for example in case LDAP, OpenKM get a read-only connection and can not apply changes in the AD ).

The method you shared is a REST method what should be used from the network, you should use OKMAuth class for it purpose, take a look in the next URL ... createUser

Post Reply