Forum Discussion

gleung's avatar
gleung
Mentor
11 years ago

Creating new user through REST API

Hi,

 

I want to use the REST API to create new users so that I anonymous users can register themself from a third party app.

I tried using the 'users/add' API however it returns the permission error:

User -1 does not have the following permission(s) : [ allow_manage_users ]

 

Is there a way that an anonymous user can register with the REST API? How can they be given allow_manage_users permission?

 

Any suggestions?

 

Thanks

1 Reply

  • PaoloT's avatar
    PaoloT
    Lithium Alumni (Retired)
    11 years ago

    Hi gleung 

     

    I think the call is meant to be called by an administrator, to create a new account. It would be quite dangerous to allow an anonymous client to programmatically add new users to a community. 

     

    Hope that helps,