Retrieve user and group information in Query
Author: ndegoeij
Publication Date: 1/31/2014 16:14
I want to build a Filter Query based on user information. In our FirstSpirit system we have created lots of users and groups. These groups have specific rights in the system. What I would like to do now is create a CMS_INPUT_COMBOBOX with a filter on it. This CMS_INPUT_COMBOBOX shows data from another table. This data contains also a reference to a table with the groups which are allowed to see this data. Within this filter I would like to test if the user who is logged in at that certain moment matches the specified group.
Is it possible to retrieve user information as well as group information of the user that is currently logged in and can this information be used in a Query?
-
Author: TimoMeister - 4/7/2017 13:24
I tried this: #global.project.getUserService().getUser().getLoginName() but this returns "SYSTEM". Why? What I would like to have is the current user.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar