# Is There Any Manifest Permission for activeDocument.filePath in InDesign UXP?

**URL:** <https://forums.creativeclouddeveloper.com/t/is-there-any-manifest-permission-for-activedocument-filepath-in-indesign-uxp/11241>\
**Category:** InDesign\
**Tags:** uxp\
**Created:** [August 1, 2025, 6:42am UTC](https://forums.creativeclouddeveloper.com/t/is-there-any-manifest-permission-for-activedocument-filepath-in-indesign-uxp/11241 "2025-08-01T06:42:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![ashwin](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ashwin](https://forums.creativeclouddeveloper.com/u/ashwin)\
**Post date:** [August 4, 2025, 7:20am UTC](https://forums.creativeclouddeveloper.com/t/is-there-any-manifest-permission-for-activedocument-filepath-in-indesign-uxp/11241/3 "2025-08-04T07:20:18Z")

</div>

hello sir I have use metaPreferences  
but this not work  
const getXmpData = () =\> {

```
var doc = app.activeDocument;

var xmpStr = doc.metadataPreferences.metadata;

if (!xmpStr || xmpStr.length === 0) {

  console.log("No metadata found.");

  return;

}

var xmp = new XMPMeta(xmpStr);

var customNS = "http://your.custom.namespace/";

var prefix = "fileInfo";

XMPMeta.registerNamespace(customNS, prefix);

var prop = xmp.getProperty(customNS, "rawData");

if (prop) {

  console.log("Custom metadata:\\n" + prop.value);

} else {

  console.log("Custom metadata not found.");

}

```

};  
I have question metaPreferences only work extendscript not uxp?  
I have direct access without external link xmlFile activeDocument rawData ? get and add,update and delete?

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/is-there-any-manifest-permission-for-activedocument-filepath-in-indesign-uxp/11241)._
