Hi, the important part of the message is missing.
From what I can say there are two usual cases. The user who publishes from VS Code doesn't have the extension management permission set (D365 EXTENSION MGT, or EXTEN. MGT. - ADMIN in newer versions). SUPER covers it too, but check it isn't limited to one company only.
The other case, the publish itself is fine but your install or upgrade codeunit touches a table where the user has no rights, or the license doesn't allow it. Permission set can't give more than the license, so a Team Member or similar user will fail even with SUPER.
Glad to help - follow up if anything is unclear.
► If this solved it, marking it verified helps others too.
Regards,
Grigorios Mavrogeorgis
Business Central Consultant & AL Developer
Work: Gmsoft Limited
Blog: insidebusinesscentral
LinkedIn: linkedin.com/in/gregorymavrogeorgis