CmdID

CmdID / aws / aws workdocs

aws workdocs add-resource-permissions

Creates a set of permissions for the specified folder or document. AWS CLI reference

1 example 4 options Its page in the AWS CLI reference

Opens CmdID with your command. It is read in your browser and sent nowhere.

Examples

from aws-cli, each command read by CmdID

To add permissions for a resource

The following add-resource-permissions example adds permissions to the resource for the specified principals.

aws workdocs add-resource-permissions --resource-id d90d93c1fe44bad0c8471e973ebaab339090401a95e777cffa58e977d2983b65 --principals Id=anonymous,Type=ANONYMOUS,Role=VIEWERIdentify
--resource-idThe ID of the resource.
--principalsThe users, groups, or organization being granted permission.
Its output
{
    "ShareResults": [
        {
            "PrincipalId": "anonymous",
            "Role": "VIEWER",
            "Status": "SUCCESS",
            "ShareId": "d90d93c1fe44bad0c8471e973ebaab339090401a95e777cffa58e977d2983b65",
            "StatusMessage": ""
        }
    ]
}

Options

4 in the AWS CLI reference
--authentication-tokenAmazon WorkDocs authentication token.
--notification-optionsThe notification options.
--principalsThe users, groups, or organization being granted permission.
--resource-idThe ID of the resource.