Hi, @RobsonNLPT Thank you for bringing your concern here.
I understand that you are granting (ALL PRIVILEGES) on a particular schema to the user and while that user is trying to add the Primary Key, getting (PERMISSION_DENIED: User is not an owner of Table). It is expected, because in Databricks altering the table, deleting the table or adding the PKs(any alter operations on the table) should need owner privilege on the table. Please see the below link for your reference regarding adding PKs.
https://docs.databricks.com/en/machine-learning/feature-store/uc/feature-tables-uc.html#:~:text=Only...
In Databricks, granting ALL PRIVILEGES on the object means you are granting the below permissions that do not include all the DDL operations.
You can follow this link to understand more about the General Unity Catalog privilege types in the Databricks:- https://docs.databricks.com/en/data-governance/unity-catalog/manage-privileges/privileges.html#gener...
Please leave a like if this answers your question, follow-ups are appreciated.
Regards,
Sai Kumar