Using Global Variables in YAML config

After finding: Smart Variables in Config Templates

… I have managed to get limited success from using the following config:

  ...access_provider: simple
  simple_allow_users:
  <%=@host.params['ALLOW_AD_USERS'] %>
  ignore_group_members: true...

I’m unsure whether there is a better approach here, I would have thought there was way of leveraging the arrays or YAML types. For now, the global variable is a string type and the usernames are listed with an indent like so:

   - user1
   - user2

I’m still a little unsure whether this maps well with the YAML tab found, I can’t quite see the link clearly. There is however more information in the help section when you create a custom report in Monitor > Report Template. This might shine a light on how to access some of the other variables in the smart classes.