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


#1

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 {
  @action(group='someActionGroup')
  myFunction: function(functionParameter: boolean)

Check out more information here, in the Access Control Documentation Article:
https://C3_ENVIRONMENT.c3iot.ai/api/1/TENANT_NAME/TAG_NAME/documentation/topic/access-control