Appian Community and Appian Academy are being upgraded. As a part of the upgrade, Appian Community is currently in read-only mode, and user registration is disabled until August 3. We apologize for any inconvenience this may cause, but a more secure, stable, and performant Community experience is coming soon!

The new Appian Community launches August 3, followed by Appian Academy on August 7. During the migration, Appian Community Edition, Appian Academy, Documentation, Certifications, Instructor-led Customer Training, Partner Sales Training & Accreditation, and Forum (for Appian Partners and Customers only) will remain available.

Best Approach for Controlling Field Access in Read-Only Interface

Certified Associate Developer

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
  • 0
    Certified Associate Developer

    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
  • 0
    Certified Associate Developer

    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