Hi David,

Thanks for the quick response.

Automatic directory creation was enabled on that database, and I've since
populated it with many sub directories and docs.

I found an ML writeup
<https://docs.marklogic.com/guide/admin/webdav#id_43919> saying this :

When a WebDAV client accesses a WebDAV server whose database has directory
creation set toautomatic, if the WebDAV root directory does not exist in
that database, it is automatically created. The directory is created with
no permissions, so it will only be readable by users with the admin role.
For other users to be able to use the WebDAV server, you should add
appropriate read permissions to the directory (with
xdmp:document-add-permissions
<https://docs.marklogic.com/xdmp:document-add-permissions>, for example).


So I gave my non-admin users read permission to that databases' root
directory like this :

xdmp:document-set-permissions(
    "/",
    (
     xdmp:permission("devops-admin", "read"),
     xdmp:permission("devops-read-user", "read")
    )
)


I'm now able to connect to that database via WebDAV using the above users.

Regards.
Danny


On Sat, Aug 8, 2015 at 10:35 AM, David Lee <[email protected]> wrote:

> Make sure you have automatic directory creation on before adding documents
> to the DB,
>
> if you added files before enabling WebDav (which will not let you enable
> it without the auto-create directory setting) You may need to manually
> create the missing directory entries that WebDav requires.
>
>
>
>
>
>
> -----------------------------------------------------------------------------
>
> David Lee
> Lead Engineer
> *Mark**Logic* Corporation
> [email protected]
> Phone: +1 812-482-5224
>
> Cell:  +1 812-630-7622
> www.marklogic.com
>
>
>
> *From:* [email protected] [mailto:
> [email protected]] *On Behalf Of *Danny Sinang
> *Sent:* Saturday, August 08, 2015 9:52 AM
> *To:* general <[email protected]>
> *Subject:* [MarkLogic Dev General] Roles needed to connect to WebDAV app
>
>
>
> Hi,
>
>
>
> What non-admin role(s) does a user need to connect to a WebDAV app ?
>
>
>
> I've a non-admin user and each time I try to connect, I get a 404 Not
> Found error.
>
>
>
> Admin users have no such problems.
>
>
>
> Regards,
>
> Danny
>
>
>
>
>
> _______________________________________________
> General mailing list
> [email protected]
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to