User attempting to assign or create tags for virtual machines through the vSphere UI or via automation, the task fails with the following error:
(vmodl.fault.SecurityError) {<br/> faultCause = null,<br/> faultMessage = null<br/>}The following log traces are observed in vCenter Server at /var/log/vmware/vpxd-svcs/vpxd-svcs.log
YYYY-MM-DDTHH:MM:SS.###Z [dataservice-# [] ERROR com.vmware.cis.core.tagging.vmodl.MoTagManager opId=########-####-####-####-######## IS] Failed to bulk attach tagscom.vmware.cis.core.tagging.exception.UnauthorizedException: Domain_name\user_name does not have attach privilege on tag urn:vmomi:InventoryServiceTag:####-####-####-####-########:GLOBALVMware vCenter Server
This issue occurs because the custom role assigned to the user lacks the necessary tagging permissions. The "Assign or Unassign vSphere Tag" privilege is not enabled.
Before making changes to roles and permissions, ensure you have a valid backup or snapshot of your vCenter Server.