How to assign an action/method on a type to an action group


If I want to assign an action to an action group to allow for users in an AdminGroup (c3ShowType(AdminGroup)) with access to a certain Action Group to be able to invoke this method, I can do so like this, using the @action annotation (c3ShowType(c3Annotation("Action"))).

This can be helpful in simplifying the Permissions on the Roles in your AdminGroups to allow for access to many actions in the same Permission Statement.

type SomeType {
  myFunction: function(functionParameter: boolean)

Check out more information here, in the Access Control Documentation Article: