0

I want to create a very simple script

function myFunction() {
  var group = AdminGroupsSettings.newGroups();
  Logger.log(group)
}

But I have the error ReferenceError: AdminGroupsSettings is not defined. However, my Admin SDK is well added from Services. The function is a simple copy from the Update a group's settings example

The33Coder
  • 139
  • 7
  • This is not reproducible on my side. If I add the Advanced Service, I don't get any error. Make sure the `Identifier` is actually `AdminGroupsSettings`. – Iamblichus Feb 21 '22 at 13:33
  • I had added the Admin SDK API instead of the Groups Settings API – The33Coder Feb 21 '22 at 15:02

1 Answers1

1

The Groups Setting API seems to be different from the Admin SDK API. I recommend using the Admin SDK API instead of the Groups Setting API.

taro
  • 34
  • 2