Quintiq file version 2.0
#parent: #root
Method AssignUserGroup (
  structured[UserGroupDefinition] usergroupdefinitions
) id:Method_DialogEditScenarioAuthorization_AssignUserGroup
{
  #keys: '[134266.1.2035637851]'
  Body:
  [*
    // Assign scenario authorization
    groupnames := construct( Strings );
    
    traverse( usergroupdefinitions, Elements, ug )
    {
      groupnames.Add( ug.Name() );
    }
    
    DataHolderScenarioNode.Data().Authorize( groupnames, true );
  *]
}
