You should not need any special permissions to run this, but you will only see
the properties if:
1) you have a role corresponding to a read permission on the specified directory
and
2) you have a role corresponding to a read permission on the URIs under that
directory that have properties
So this is not a privilege thing, it is a permissions thing.
To start figuring this out, run the following (as admin) on the specified
directory URI:
xdmp:document-get-permissions("/your-dir-uri/")
If there are no permissions on that URI, then only a user with the admin role
can access it.
-Danny
-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Mike Sokolov
Sent: Friday, May 13, 2011 9:24 AM
To: General MarkLogic Developer Discussion
Cc: Donal Boyle
Subject: [MarkLogic Dev General] granting access to xdmp:directory-properties()
How does one grant access to xdmp:directory-properties() to a user/role?
None of our users except those with the "admin" role are able to execute
this function, and it's not listed on the security page as a function to
which you can grant access. Is it part of some other privilege?
--
Michael Sokolov
Engineering Director
www.ifactory.com
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general
_______________________________________________
General mailing list
[email protected]
http://developer.marklogic.com/mailman/listinfo/general