Permissions for a report application
Create two policies under the same product and use stable feature IDs. Give both tiers viewing access and add export permission to Pro.
| Operation | Basic | Pro |
|---|---|---|
View reports · view_report |
Allowed | Allowed |
Export a file · export |
Denied | Allowed |
Check permission at the operation
Use the SDK feature check in the handler that views or writes the report. Menu items, keyboard shortcuts and background jobs must use the same check. A separate metered quota can limit how often an allowed export runs.
Refresh access after an upgrade
In Licenses, select the existing license and preview applying the Pro policy. Confirm the change for the same product. The client obtains the new signed permissions at the next successful online check. While offline, it follows the cached grant until it reconnects or that grant expires.
Verify before delivery
- On Basic, verify view succeeds and direct export is denied without creating a file. On Pro, verify the export creates a file.
- Switch a test license from Basic to Pro, then check the signed permissions before and after online refresh. For a downgrade, test the configured offline validity.
Feature-based licensing with monthly metered usage limits
Control feature access and monthly usage limits in licensed software. Check permissions before execution, reserve and commit metered usage, and handle retries without consuming the same operation twice.
Floating license management for desktop software
Limit concurrent desktop software use with floating licenses and heartbeats. Release seats when the last session closes normally; after a crash or lost connection, reclaim them when the lease expires.