diff --git a/connector/oauth/oauth.go b/connector/oauth/oauth.go index 9ff69510..1bb9b068 100644 --- a/connector/oauth/oauth.go +++ b/connector/oauth/oauth.go @@ -247,6 +247,9 @@ func (c *oauthConnector) addGroupsFromMap(groups map[string]struct{}, result map if groupString, ok := group.(string); ok { groups[groupString] = struct{}{} } + if groupMap, ok := group.(map[string]interface{}); ok { + groups[groupMap["name"]] = true + } } return nil