Skip to main content
Question

Permission Error in CLI for Metadata Grant

  • May 23, 2025
  • 1 reply
  • 24 views

Forum|alt.badge.img

Metadata can be granted when executed manually on box.com, but a permission error occurs when executing the following command in powershell authenticated with the same user.
How can I resolve it?

ex.

box files:metadata:add 11111111111 --template-key template1 --data "client=MS"
access_denied_insufficient_permissions - Access denied - insufficient permission

1 reply

Forum|alt.badge.img

It doesn't look like the cli command shown is using the as-user option. Is the CLI configured with OAuth or JWT? 

It's possible that the CLI user doesn't have access to the file you are applying metadata to? Or that the application scopes don't include metadata?