Hi, Hans:
You can think of the rest-reader and rest-writer roles as system roles.
If you don't assign those roles to any application user, the user's won't be
able to see each other's documents.
Instead, you assign the rest-reader and the rest-writer execute privileges to
users.
For more information, see:
https://docs.marklogic.com/guide/rest-dev/intro#id_35473
Hoping that helps,
Erik Hennum
________________________________
From: [email protected]
[[email protected]] on behalf of Hans Hübner
[[email protected]]
Sent: Tuesday, May 23, 2017 10:13 PM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Creating private documents through ReST
Hi,
I'm trying to devise a way to create documents through ReST which are private
to a specific user. I had hoped that I can create a role for each user and
then grant read and update permissions to that role. However, when creating a
document through the ReST interface, it seems that there is no way to remove
the default rest-reader:read and rest-writer:update permissions [*]
Is there another way how one can create private documents through the ReST API?
Thanks,
Hans
[*] https://docs.marklogic.com/REST/PUT/v1/documents "If no permissions are
explicitly set, documents you create with the MarkLogic REST API have a read
permission for the rest-reader role and an update permission for the
rest-writer role. When you explicitly set permissions, they are combined with
the default permissions for the role of the current user."
--
LambdaWerk GmbH
Oranienburger Straße 87/89
10178 Berlin
Phone: +49 30 555 7335 0
Fax: +49 30 555 7335 99
HRB 169991 B Amtsgericht Charlottenburg
USt-ID: DE301399951
Geschäftsführer: Hans Hübner
http://lambdawerk.com/
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general