Try the fastest and simplest way to install ONLYOFFICE

How to activate user using API

Integration questions/issues

How to activate user using API

Postby lmenaria » Thu Jun 16, 2016 11:00 am

Hi,

I have created a user using People user but unable to activate it using API, please let me know how it can be possible? I don't want to send activation mail to users.

Thanks
laxmilal
lmenaria
 
Posts: 22
Joined: Thu Jun 16, 2016 10:57 am

Re: How to activate user using API

Postby Dean » Thu Jun 16, 2016 12:30 pm

User cannot be activated from API, only by performing the following SQL-request:

Code: Select all
UPDATE core_user SET activation_status = 1 WHERE id = "USER_ID";
Dean
 
Posts: 700
Joined: Tue Sep 30, 2014 11:04 am

Re: How to activate user using API

Postby lmenaria » Fri Jun 17, 2016 7:47 am

Thanks
lmenaria
 
Posts: 22
Joined: Thu Jun 16, 2016 10:57 am

Re: How to activate user using API

Postby naboki » Tue Oct 11, 2016 2:34 pm

after changing infos in the database, it takes some time to be visible.
How can we force the refresh?
naboki
 
Posts: 4
Joined: Thu Sep 29, 2016 7:40 pm

Re: How to activate user using API

Postby Eugenie » Mon Oct 17, 2016 3:30 pm

To accelerate the cache process, please do the following:
UPDATE core_user SET activation_status = 1, last_modified = DATE_ADD(now(), interval 5 minute) WHERE id = "USER_ID"
Eugenie
 
Posts: 134
Joined: Mon Aug 25, 2014 10:11 am


Return to API

Who is online

Users browsing this forum: Bing [Bot] and 1 guest