Search the FirstSpirit Knowledge Base
Hello Community,
I'm trying to list all the groups defined in PermissionService and are selectable in CMS_INPUT_PERMISSION in output channel.
I was expecting #global.project.groups to return those groups, but it outputs user groups and not the groups from PermissionService.
Any idea how it can be done?
Greets,
Rolland
Hello Rolland,
with #global.project.groups you get the groups you have defined in your project settings. To get the groups that are specified in the metadata try the following code:
$CMS_SET(lang, #global.project.getMasterLanguage)$
$CMS_VALUE(#global.node.getMetaFormData.get(lang, "perms").get.getGroupsName)$
Greets,
Rene
Hello Rene,
thanks for your suggestion. In my case "getGroupsName" returns only the String "ASP" and not a list of all defined groups.
Here is the content of PermissionService configuration files:
PermissionService/service.ini
#
# global params
# -------------
# check each x seconds for changes
interval=20
# symbolic names for documents
#documents=GroupsFile
#documents=DaiPersonalisation4933,GroupsFile, ASP, ASP-PARA
documents=DaiPersonalisation4933,GroupsFile, ASP
#
# document specific params
# ------------------------
#GroupsFile.path=groups.xml
DaiPersonalisation4933.path=daiPersonalisation4933.xml
GroupsFile.path=groups.xml
ASP.path=asp.xml
#ASP-PARA.path=asp-para.xml
PermissionService/asp.xml
<?xml version="1.0" encoding="ISO-8859-1" ?>
<GROUPS name="Aftersales Service Portal" version="1">
<GROUP id="ASPORTAL.HQ_MPC_GV" name="HQ/MPC/GV"/>
<GROUP id="ASPORTAL.Dealer" name="Dealer"/>
<GROUP id="ASPORTAL.COSN" name="COSN"/>
</GROUPS>
Hello Rolland,
is this still a open question or did you get a solution meanwhile?
best regards
Michaela
Hello,
because of no further reactions to this thread i guess the question was solved, so i will mark it as answered.
If there are still further questions please create a new posting.
Best regards
Michaela