Page 1 of 1

Assigning profile to user

PostPosted:Tue Apr 28, 2020 12:11 pm
by openkm_user
Hello,

There is no API available for creating user in OpenKM, so we used the following to write our own method,
https://github.com/openkm/document-mana ... .java#L308

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

Thanks!

Re: Assigning profile to user

PostPosted:Fri May 01, 2020 3:45 pm
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 https://docs.openkm.com/kcenter/view/ok ... createUser