Skip to content
REFERENCE

U.SECRET

Summary

Helper method used to create properly formatted metadata for applying a secret to a report being published or a request to retrieve a report or its metadata. Secrets are used to restrict view access to reports

Syntax

=U.SECRET(secret, [metadata])

Parameters

Parameter Required Description
secret Yes The secret to be applied to publishes or included in requests to subscribe to a report and/or get its data or metadata
[metadata] No Additional metadata to be applied to request. If specified this metadata is combined with the secret metadata into a single list of metadata entries

Behavior

The documented public interface is supported by the current U Add-in source signature and the maintained Usage Examples workbook. Optional parameters are shown in square brackets in the syntax above; omit the brackets when entering a formula.

Return Value

Returns the function result or action status described by the formula and parameters above. The maintained sources do not define a narrower, stable return contract for this function.

Examples

=U.PUBLISH(F66,F67,B67:C69,U.SECRET("mysecret",B73:C74))
=U.SECRET("mysecret")
=U.SECRET(U.TOPIC(F66,F67))

Notes

  • Formula examples are preserved from maintained workbook usage and normalized to the current U. prefix.
  • Complete formulas demonstrate working patterns; they do not imply that undocumented option values are supported.
  • Where maintained sources do not specify every accepted value, default, or error message, this page does not infer one.
  • For functions that perform actions, use a visible trigger or supported block/throttle parameter to avoid unintended repetition during recalculation.