In a QAction (driver) we want to detect if the person clicking on a button (triggering the qaction) is part of a specific group or groups.
I found the level feature on param level, but this is not what I need.
I would like to make it dynamic e.g.
- click on button is allowed for user from group A when <condition A>
- click on button is NOT allowed for user from group A when <condition B>
- click on button is allowed for user from group B when <condition B>
Can the usercookie be used somehow?
Mieke Dryepondt [SLC] [DevOps Advocate] Selected answer as best 20th October 2020
The SLProtocol.UserInfo string property contains the name of user that clicked on the button.
But it doesn't contain information about the group(s) the user is assigned to.
Thomas Cauwelier [SLC] [DevOps Advocate] Answered question 19th October 2020