Group group = user.getGroup();
long groupIdLong = group.getGroupId();
ServiceContext serviceContext = new ServiceContext();
serviceContext.setAddCommunityPermissions(true);
serviceContext.setAddGuestPermissions(true);
<BUG>serviceContext.setScopeGroupId(groupIdLong);
if (albumId == null) {
DLAppLocalServiceUtil.addFolder(
userIdLong, groupIdLong,
DLFolderConstants.DEFAULT_PARENT_FOLDER_ID,
</BUG>
album.getTitle(), album.getDescription(), serviceContext);

Group group = user.getGroup();
folders = DLAppServiceUtil.getFolders(
group.getGroupId(),
DLFolderConstants.DEFAULT_PARENT_FOLDER_ID);
