Action to create Many to many link - Not enough permissions?

I created an Object Type (A) in my Foundry instance, and I created a Many to Many link to another Object Type (B).
I created an Action to create a new link between an instance of A and an instance of B. I was able to create the Action.

I created another Action backed by a function, to create a link between both instances.

When trying to save the Function’s backed Action, I got:

An error (OntologyMetadata:PermissionDenied) occurred with this request (error id: REDACTED). Please ensure you have edit permissions on the resources listed below in order to save changes to your ontology.
operations: {ri.ontology.main.object-type.REDACTED_OBJECT_TYPE_B =[ontology:edit-object-type-for-action-type]} `

Questions:

  • What’s the permission story ?
  • Do I need to be editor to create many to many link with an Object I don’t have permissions to edit (B) ?
  • Are Actions different from Function’s backed Actions ?
  • Are there different syntaxes for functions which require edits on objects ?

To what I see, to create a Many to Many link between Object Types in Foundry, you need:

  • Ontology viewer permissions on the object types referenced on both sides of the link type
  • Ontology editor permissions on the link type itself.

If the link type uses a join table (that’s the case for a N-N link), Viewer permissions to the join table datasource are also required.

Function-backed Actions require stricter permissions, including Ontology Editor on all object types that the function edits.

The syntax for functions remains the same, but the permissions required to execute them are stricter.