DE API Documentation

View on GitHub

Listing User Permissions

Lists the users that have access to a file and the their permissions on the file. The user making the request and the configured rodsadmin user are filtered out of the returned list. The user making the request must own the file.

URL Path: /secured/filesystem/user-permissions

HTTP Method: POST

Error Codes: ERR_NOT_A_USER, ERR_DOES_NOT_EXIST, ERR_NOT_OWNER

Request Query Parameters:

Request Body:

{
    "paths": [
        "/iplant/home/testuser/testfile",
        "/iplant/home/testuser/testfile2"
    ]
}

Response Body:

{
    "paths": [
        {
            "path": "/iplant/home/testuser/testfile",
            "user-permissions": [
                {
                    "user": "user1",
                    "permission": "read"
                }
            ]
        },
        {
            "path": "/iplant/home/testuser/testfile2",
            "user-permissions": [
                {
                    "user": "user2",
                    "permission": "read"
                }
            ]
        }
    ]
}

Curl Command:

curl -H "$AUTH_HEADER" -d '{"paths" : ["/iplant/home/testuser/testfile", "/iplant/home/testuser/testfile2"]}' 'http://nibblonian.example.org/secured/filesystem/user-permissions