Skip to content

PodPermissionService

This service, automatically created by the AppService with the key pod-permissions, allows you to manage WAC permissions on resources, containers and collections. See this page for usage examples.

Actions

The following service actions are available.

get

Get permissions of a resource, container or collection.

Parameters

PropertyTypeDescription
uriStringURI of the resource, container or collection
actorUriStringWebID of the Pod on which the action should be done

Return value

An array with acl:Authorization resources associated with the resource.

add

Add permissions to a resource, container or collection.

Parameters

PropertyTypeDescription
uriStringURI of the resource, container or collection
agentUriStringURI of the agent which will receive the permission
agentPredicateStringCan be acl:agent, acl:agentGroup or acl:agentClass
modeStringCan be acl:Read, acl:Append, acl:Write or acl:Control
actorUriStringWebID of the Pod on which the action should be done

Return value

True if the operation succeeded.

remove

Remove permissions from a resource, container or collection.

Parameters

PropertyTypeDescription
uriStringURI of the resource, container or collection
agentUriStringURI of the agent which will receive the permission
agentPredicateStringCan be acl:agent, acl:agentGroup or acl:agentClass
modeStringCan be acl:Read, acl:Append, acl:Write or acl:Control
actorUriStringWebID of the Pod on which the action should be done

Return value

True if the operation succeeded.