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
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.
I tried isusermemberofgroup( username:loggedInUser(), groupId:cons!UMS_ASSIGNEE_GROUP ) in expression rule, it is returning false value. But still the page is visible.
If you are testing by using system administrator login it will not effect the security settings.
While testing use basic user. Not the System administrator
I created a new user for testing. But access is denied to my application. How to give access to user that I have created?
Please add the created user in the group(which has access to your application) and also provide security for application and other appian objects.