View the original community article here
Last tested: Aug 13, 2020
Say you have staging/dev/production instances and your group ids are different per instance.
The recommendation is to keep the names the same, then
1. run api call on group name to get group id, save as variable
2. add the group id variable to the sso embed url
No magic there. best you can do is query for all_groups then pick them out by name. or the app code could keep a mapping somewhere of all the names => id for every environment, so you don't have to keep looking it up