Thanks for that. I got it to work but I used the number of the group (along with the "short name" of the course and role.
In case anyone is searching later, the "short name" is case-sensitive.
In case anyone is searching later, the "short name" is case-sensitive.