CmdID / aws / aws workdocs
aws workdocs describe-resource-permissions
Describes the permissions of a specified resource. AWS CLI reference
1 example 5 options Its page in the AWS CLI reference
Examples
To get a list of permissions for a resource
The following describe-resource-permissions example returns a list of the permissions for the specified resource (document or folder).
aws workdocs describe-resource-permissions --resource-id 15df51e0335cfcc6a2e4de9dd8be9f22ee40545ad9176f54758dcf903be982d3Identify--resource-idThe ID of the resource.Its output, shortened
{
"Principals": [
{
"Id": "anonymous",
"Type": "ANONYMOUS",
"Roles": [
{
"Role": "VIEWER",
"Type": "DIRECT"
}
]
},
{
"Id": "S-1-1-11-1111111111-2222222222-3333333333-3333&d-926726012c",
"Type": "USER",
"Roles": [
{
"Role": "OWNER",
"Type": "DIRECT"
}
]
},
{
"Id": "d-926726012c",
"Type": "ORGANIZATION",
"Roles": [
{
"Role": "VIEWER",
"Type": "INHERITED"
}
… 4 more linesOptions
--authentication-tokenAmazon WorkDocs authentication token.--limitThe maximum number of items to return with this call.--markerThe marker for the next set of results.--principal-idThe ID of the principal to filter permissions by.--resource-idThe ID of the resource.