Is there any way to hide the pages from the site according to the user group?

I have tried the below code.

isusermemberofgroup( username:loggedInUser(), groupId:cons!UMS_ASSIGNEE_GROUP )

But it is not working. Is there any other way to hide the pages from the site according to the user group?

  Discussion posts and replies are publicly visible

Parents
  • Yes. While configuring your site page your define the visibility condition.

    For your case it should work. Check whether the constant type is mapped with group, mapped group has the user.

    Try without using without parameter names like isusermemberofgroup(loggedInUser(),cons!UMS_ASSIGNEE_GROUP).

    If not create a separate rule and check whether the rule is giving appropriate output. So that you can have what the expression is returning.

    Also check the security of the rules folder.

Reply
  • Yes. While configuring your site page your define the visibility condition.

    For your case it should work. Check whether the constant type is mapped with group, mapped group has the user.

    Try without using without parameter names like isusermemberofgroup(loggedInUser(),cons!UMS_ASSIGNEE_GROUP).

    If not create a separate rule and check whether the rule is giving appropriate output. So that you can have what the expression is returning.

    Also check the security of the rules folder.

Children