You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Although the documentation states that a POST to the Users end point is possible, it actually is not (there is probably something wrong with the generation of the documentation 😕). The REST API currently doesn't support the creation of users. The reason for this is that adding users to Communote is not a single operation but an interactive process of multiple steps:
self registration or invitation by another user
confirming the email address by a click on a link in a mail
providing details like username, name and password
activation by an admin (if automatic activation isn't enabled)
Moreover, if an external user repository (like an LDAP directory) is used, self registration is typically disabled and users are added automatically on the first login.
We haven't found a clean way to model these aspects in the REST API yet.
If you have some additional details about what you're trying to achieve, maybe we can find another solution 😃
@rwi Maybe at least it should be able to still generate the user using the API and then trigger everything else (i.e. email confirmation). If something is not possible in the "standard" workflow, maybe just respond with an error.
@datenwort Workaround: write a custom API to create users.
@scrobbleme yes would be a way to tackle it. But whether this is actually useful for developers depends on their use-cases. If you for example need to create a working / usable user via the API, it won't help.
Sorry for not answering this question since a while
@rwi thank you for the information. The use case was implementing communote into a cms as special component to communicate while other tasks will be done by other tools. But I will try to activated LDAP and SSO to avoid creating user manually.
But wondering if the LDAP/SSO plugin will create the jsessionid automatically or not, but I will give this a try.
Activity
rwi commentedon Oct 5, 2017
Although the documentation states that a POST to the Users end point is possible, it actually is not (there is probably something wrong with the generation of the documentation 😕). The REST API currently doesn't support the creation of users. The reason for this is that adding users to Communote is not a single operation but an interactive process of multiple steps:
Moreover, if an external user repository (like an LDAP directory) is used, self registration is typically disabled and users are added automatically on the first login.
We haven't found a clean way to model these aspects in the REST API yet.
If you have some additional details about what you're trying to achieve, maybe we can find another solution 😃
scrobbleme commentedon Oct 6, 2017
@rwi Maybe at least it should be able to still generate the user using the API and then trigger everything else (i.e. email confirmation). If something is not possible in the "standard" workflow, maybe just respond with an error.
@datenwort Workaround: write a custom API to create users.
rwi commentedon Oct 10, 2017
@scrobbleme yes would be a way to tackle it. But whether this is actually useful for developers depends on their use-cases. If you for example need to create a working / usable user via the API, it won't help.
datenwort commentedon Nov 1, 2017
Sorry for not answering this question since a while
@rwi thank you for the information. The use case was implementing communote into a cms as special component to communicate while other tasks will be done by other tools. But I will try to activated LDAP and SSO to avoid creating user manually.
But wondering if the LDAP/SSO plugin will create the jsessionid automatically or not, but I will give this a try.