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