Details
-
Bug
-
Resolution: Fixed
-
Major
-
None
-
None
-
*Location*: https://developer.couchbase.com/documentation/server/5.0/sdk/nodejs/sdk-user-management-example.html
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:57.0) Gecko/20100101 Firefox/57.0
*Screen Resolution*: 2560 x 1440
-
DOC-S10-Feb23[Vulcan DP]
Description
The sample code on this page is incorrect. The upsertUser function requires a "domain" parameter to be passed before the User ID. This should be set to "local" or "remote" (I think). Without this parameter you get an error.
Also, the roles which are defined in the code are only available in Enterprise Edition. I think this should be mentioned somewhere on the page, so that users don't try to replicate the same functionality in Community Edition.
Reporter: Giles Ellis
E-mail: giles@yoyotta.com