Hi, I tried the password reset option as suggested in below email using the endpoint "“/manage/v2/users/user-name/properties”. I am using RESTED (google chrome extension) for the PUT request. But the request is failing with the below error (INVALIDREQUEST). Any idea why is this happening? Is there anyway to overcome this?
2016-12-27 17:59:48.567 Info: Manage: REST-INVALIDREQUEST: (rest:INVALIDREQUEST) Invalid request: Host does not match origin or inferred origin, or is otherwise untrusted. 2016-12-27 17:59:48.567 Info: Manage: 1095:8:/MarkLogic/appservices/utils/rest-impl.xqy Thanks, Durai -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Norman Walsh Sent: Friday, December 16, 2016 9:47 PM To: MarkLogic Developer Discussion <[email protected]> Subject: Re: [MarkLogic Dev General] password change Norman Walsh <[email protected]> writes: > <[email protected]> writes: >> What is the equivalent Marklogic Rest API for the below xquery api? > > PUT a JSON or XML payload containing the user-name and password to > /manage/v2/users/user-name. Sorry. As someone pointed out off-list, that’s not quite right. The endpoint in question is “/manage/v2/users/user-name/properties”. If you want to change the password for a user named “testuser” to “newpsw”, save this payload: <user-properties xmlns="http://marklogic.com/manage"> <user-name>testuser</user-name> <password>newpsw</password> </user-properties> in /tmp/u.xml and PUT it like so: curl -X PUT -H "content-type:application/xml" \ --data-binary @/tmp/u.xml --digest \ -u admin:admin \ http://f23-builder:8002/manage/v2/users/testuser/properties Assuming your admin password is “admin” :-) Be seeing you, norm -- Norman Walsh Lead Engineer MarkLogic Corporation Phone: +1 512 761 6676 www.marklogic.com _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general This e-mail and any files transmitted with it are for the sole use of the intended recipient(s) and may contain confidential and privileged information. If you are not the intended recipient(s), please reply to the sender and destroy all copies of the original message. Any unauthorized review, use, disclosure, dissemination, forwarding, printing or copying of this email, and/or any action taken in reliance on the contents of this e-mail is strictly prohibited and may be unlawful. Where permitted by applicable law, this e-mail and other e-mail communications sent to and from Cognizant e-mail addresses may be monitored. _______________________________________________ General mailing list [email protected] Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general
