microsoft / PowerPlatform-Catalog

Power Platform Catalog Issues and Feedback
MIT License
9 stars 0 forks source link

Requesting User does not have permission to update. When submitting new Catalog Item via PAC CLI #19

Closed mrmwinkjust closed 4 months ago

mrmwinkjust commented 4 months ago

When attempting to submit a new catalog item it always has a status of "Failed Prevalidation", upon investigation the full error is "Requesting User does not have permission to update".

I have confirmed I am SA, I've also added all the Catalog Security Roles to confirm I have the required access but still get the same.

  1. Create simple Catalog submission document (Attached)
  2. In Pac CLI (v1.30.6) run command - pac catalog submit -env "{env}" -p "{path to config}" -sz "{solution.zip}"
  3. Check tracking for result

Added screenshot of note attached to Failed Validation item in Catalog App

submission-example.json CatalogError

MattB-msft commented 4 months ago

That error means that the user of the Pac command is not a member of the publisher you're trying to push an update to. To push an update, the requesting user must be a member of that publisher.

To do that you would add the user to the Publishers User list in catalog, under the publisher. You can also do this as part of a submit by sending a group of users or AAD groups during the submission request.

mrmwinkjust commented 4 months ago

Awesome, that solved it thanks, just getting to grips with the Catalog and seeing how it may integrate in the future.