Forum

Jennifer Häfner
      Has successfully completed the online course Intermediate (200)
      Has successfully completed the online course Advanced (300)
      Has successfully completed the online course Basics (100)
      Has successfully completed the online course Advanced (310)
      Has successfully completed the online course Advanced (320)
      Has successfully completed the Intermediate Certification
      Has successfully completed the Advanced Certification
    1 year ago #38476
    Up
    0
    Down
    ::

    Hi Vasileios,

    There is currently no way to hide the users in the user list if the logged-in user has the permissions to read all users. I can think of this workaround, but I haven’t actually tested it:

    • Remove the permission to read all users –> the user list is not visible in the Simplifier UI. Instead, assign a role or an attribute to the user, like ‘canReadUsers’
    • However, the user needs the permission to read themselves and to read and assign roles
    • When the user logs in to the application, check inside a Server-Side Business Object (SBO) function if the user has the required role or attribute ‘canReadUsers’
    • If yes: use the SBO API  to assign a role to the logged-in user which includes the permission to read all users
    • Do the logic inside the application that you need to do (e.g., read users of a given group)
    • After that, in another SBO function, unassign the role which includes the permission to read all users again from the logged-in user –> the user only has this role to read all users for the necessary task inside the application

    Let me know if this works for you.