Skip to main content
July 16, 2025
Solved

Security Not working.

  • July 16, 2025
  • 6 replies
  • 0 views

a!isUserMemberOfGroup(
  username: loggedInUser(),                                                                                                                             
  groups: cons!IP_GRP_RECRUITERS
)

So this above code i gave it so that that particular field is visible to the specific user from the specific group only, but its not working when i gave it in a read only grid. This code did work in the normal interface and it only showed the particular field to the particular user of specific group only , but when i gave it in the read only interface, its not working. What anyone help me with what might be the issue.

    Best answer by shubhama926776

    In a read-only grid, you need to apply the showWhen parameter to the grid column itself, not to fields inside the column.

    a!gridColumn(
      label: "Column Name",
      value: fv!row.fieldName,
      showWhen: a!isUserMemberOfGroup(
        username: loggedInUser(),
        groups: cons!IP_GRP_RECRUITERS
      )
    )


    Or

    You can use field level security on record.

    https://docs.appian.com/suite/help/25.1/field-level-security.html

    6 replies

    shubhama926776
    July 16, 2025

    In a read-only grid, you need to apply the showWhen parameter to the grid column itself, not to fields inside the column.

    a!gridColumn(
      label: "Column Name",
      value: fv!row.fieldName,
      showWhen: a!isUserMemberOfGroup(
        username: loggedInUser(),
        groups: cons!IP_GRP_RECRUITERS
      )
    )


    Or

    You can use field level security on record.

    https://docs.appian.com/suite/help/25.1/field-level-security.html

    July 16, 2025

    What is the correct way to put this showwhen field in a local variable. Can you please guide me through it.

    shubhama926776
    July 16, 2025

    Firstly, Your main issue got solved?