Best Approach for Controlling Field Access in Read-Only Interface

How can we allow certain users to view critical fields while restricting access for others, all within the same application and read-only interface? What’s the best approach to achieve this?

  Discussion posts and replies are publicly visible

Parents
  • Using a!isUserMemberOfGroup() won't meet my needs, as this function is only useful when users have already been added to a group. I’m aiming to define this for users' current sessions.

    Here are the steps I followed:

    1. Installed the User Session Checker plugin to retrieve the current user session details.
    2. Created an expression rule


    3. I called this expression from the interface containing the field I want to hide and utilized the showWhen condition.


    Even when abc logs in, abc can still see the field that should be hidden. I feel like I’m missing something here. Any suggestions or help would be greatly appreciated. Also, is there a way to track how local variables or rule inputs are changing in the backend when a user logs into the application and navigate different fields in the UI?

Reply
  • Using a!isUserMemberOfGroup() won't meet my needs, as this function is only useful when users have already been added to a group. I’m aiming to define this for users' current sessions.

    Here are the steps I followed:

    1. Installed the User Session Checker plugin to retrieve the current user session details.
    2. Created an expression rule


    3. I called this expression from the interface containing the field I want to hide and utilized the showWhen condition.


    Even when abc logs in, abc can still see the field that should be hidden. I feel like I’m missing something here. Any suggestions or help would be greatly appreciated. Also, is there a way to track how local variables or rule inputs are changing in the backend when a user logs into the application and navigate different fields in the UI?

Children
No Data