Skip to content
OpenAppPhysical access, simplified
Login

Max share duration

Type
share_max_duration
Category
Invitations
Enforced at
Authoring-time
Tiers
OrgIntegrationDevice
Enforcement
Enforce
Default
System default is 86400 (1 day) when unset. Org policy may raise the share cap up to 31536000 (365d).

Applies only when creating a share (kind=share). The system default cap is 1 day. An org share_max_duration policy may raise that cap up to 1 year. Effective duration is the min of invitation_max_duration and the share cap. The request is rejected rather than silently shortened.

When it is enforced

Evaluated when someone creates or updates an invitation, hold, or share. Requests that would exceed the limit are rejected — they are not silently rewritten.

Where to set it

Settings → Policies (org), the integration Policies tab, or — on PalGate — the device steward Policies tab.

Policies never grant access. See thepolicies architecture guidefor how org, integration, and device tiers combine.

Arguments

The config object on create/update. Shared row fieldsenforcement (enforce, require_approval,audit_only) and enabled apply to every type;audit_only and disabled rows never block.

NameTypeRequiredValuesDescription
max_secondsintegerYesMaximum share lifetime in seconds. Must be greater than 0 and at most 31536000 (365d).
outputstring or integerNoOptional channel or output id. When set, the policy binds only that output. When omitted, it binds every output of the tier target. A scoped row does not apply when the acting output is unknown.

How overlapping rows combine

Minimum of max_seconds across applicable share_max_duration rows (else 86400), then min with invitation_max_duration. Reject, do not clamp.

Example

A 48-hour share is rejected when the cap is 24 hours.

config
{
"max_seconds": 86400
}

Integrations

This type is documented on these connectors: