Page 1 of 1
Create new user via web services?
PostPosted:Mon Jan 14, 2013 2:52 pm
by olsonea
I can't seem to find a web service that will create a new user. Does one exist that is unpublished?
LDAP authentication is not an option for me.
Re: Create new user via web services?
PostPosted:Tue Jan 15, 2013 9:20 am
by dejanfc
grantUser
grantRole (both in AUTH)
Does this work?
Re: Create new user via web services?
PostPosted:Wed Jan 16, 2013 10:36 pm
by jllort
There's no webservice method to create a new user. Explain your scenario and we will try to find some solution. Why and when is needed to create a new user remotelly.
Re: Create new user via web services?
PostPosted:Sun Jan 27, 2013 11:24 am
by pavila
This only have sense if you using default DatabasePrincipalAdapter, but of you are using another external user and role sources like LdapPrincipalAdapter it would not make sense because you can't create users or roles.
Re: Create new user via web services?
PostPosted:Thu Feb 21, 2013 6:29 pm
by olsonea
jllort wrote:There's no webservice method to create a new user. Explain your scenario and we will try to find some solution. Why and when is needed to create a new user remotelly.
When a new user registers on our Wordpress site, I want to automatically create an account for them in OKM. Manually creating an account for each user will be time/cost prohibitive.
Re: Create new user via web services?
PostPosted:Mon Feb 25, 2013 9:52 am
by jllort
That simply can be implemented with minimal php code ( or other ). You can make a call to you php with some data which is needed to created an user account.
You will need your OpenKM configured under mysql -> and then make the proper inserts.
Re: Create new user via web services?
PostPosted:Tue Jul 11, 2017 3:43 am
by Gopal
olsonea wrote: ↑Mon Jan 14, 2013 2:52 pm
I can't seem to find a web service that will create a new user. Does one exist that is unpublished?
LDAP authentication is not an option for me.
Hi did you find any solution of your problem . As because i also face same problem , i also want a web service by which i can create new user in Open KM , Please reply as soon as possible , i need a solution urgent .
Thanks
Re: Create new user via web services?
PostPosted:Tue Jul 11, 2017 4:01 am
by Gopal
jllort wrote: ↑Mon Feb 25, 2013 9:52 am
That simply can be implemented with minimal php code ( or other ). You can make a call to you php with some data which is needed to created an user account.
You will need your OpenKM configured under mysql -> and then make the proper inserts.
Hi jllort
How can i create new user in openkm through mysql or any other method or any web service.
Please help i require it on urgent base.
Re: Create new user via web services?
PostPosted:Wed Jul 12, 2017 3:54 pm
by jllort
Version 6.4.3 comes with rest webservice what allows user creation as you can see in the code
https://github.com/openkm/document-mana ... rvice.java ( this methods are not still present in the SDK, that's why you need accessing directly ).
About create from database solution, should take a look at tables named:
OKM_USER
OKM_ROLE
OKM_USER_ROLE