In the below post getting the workgroup via getusers api call can be fetched with the filter by giving the workgroup name. You can loop through this api to get all the workgroups if you know the names of workgroups.
In the below post getting the workgroup via getusers api call can be fetched with the filter by giving the workgroup name. You can loop through this api to get all the workgroups if you know the names of workgroups.