Use groupId but with normalized casing
The Docs Adaptor is also normalizing group names in the same way.
This reverts commit 793c2602e9379797c80d007ce606c96388127717 "Fix
groups' casing".
diff --git a/src/com/google/enterprise/adaptor/googleauthn/GoogleAuthnAdaptor.java b/src/com/google/enterprise/adaptor/googleauthn/GoogleAuthnAdaptor.java
index 0514abb..a1f4df0 100644
--- a/src/com/google/enterprise/adaptor/googleauthn/GoogleAuthnAdaptor.java
+++ b/src/com/google/enterprise/adaptor/googleauthn/GoogleAuthnAdaptor.java
@@ -194,9 +194,9 @@
GenericFeed groupsFeed = groupService.retrieveGroups(username, false);
while (groupsFeed != null) {
for (GenericEntry entry : groupsFeed.getEntries()) {
- // Use groupName instead of groupId because groupName uses the group's
- // canonical casing.
- groups.add(entry.getProperty("groupName") + "@" + domain);
+ // Normalize to always lower case (even though we haven't seen
+ // anything other than lower case).
+ groups.add(entry.getProperty("groupId").toLowerCase(Locale.ENGLISH));
}
Link nextPage = groupsFeed.getNextLink();
if (nextPage == null) {