Skip to content

Instantly share code, notes, and snippets.

@kimakunc
Last active July 29, 2022 16:26
Show Gist options
  • Save kimakunc/5661572 to your computer and use it in GitHub Desktop.
Save kimakunc/5661572 to your computer and use it in GitHub Desktop.
Retrieve "Global" or "Guest" scope groups from Liferay API
// get the global group
Group globalGroup = GroupLocalServiceUtil.getCompanyGroup(companyId);
//get the guest group
Group guestGroup = GroupLocalServiceUtil.getGroup(companyId, GroupConstants.GUEST);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment