SaaS CMS has officially launched! Learn more now.

Visitor groups for access rights in CMS using a Commerce user?



I have created a visitor group "Test" that says that profile email should contain "".
Then I have a CMS page were I remove Eveyone and adds "Test" with Read access rights.
After logging in with my Commerce user, a contact i Commerce that has a connected user with email I still cannot access the page.

I guess it might have something to do that it is not a user in the CMS, but how can this be solved? Do I need to develop my own criteria?



Mar 31, 2022 13:40


Unless I'm mistaken, you can't use Visitor Groups as Security groups.  

If what you are looking for is to gate some content on your CMS page, you could use the visitor group you created to only show your content to user that match your criteria.  An example of this was explained in the following article where the content was gated by a form and a visitor group.  But in your case, it could be replaced by your visitor group.


Apr 01, 2022 0:42


That is strange. When managing access rights you can select a visitor group and give the group Read access. Why can you do that if it does not work?


Apr 01, 2022 8:23

I did a test on the latest version of Foundation (cms12) and I was able to achieve the result you were looking for.  

I create a Visitor Group and checked the option to use it for Access Rights.

Then I updated the Access Rights on my Home page to remove the Read option for all the groups and I only keep my Visitor Group (ForumVG) with read access.

Following this config, only authenticated user with the email can access the page.

Is it the CMS version you are using or are you on cms11 ?

Apr 01, 2022 15:38

Ok, that is good! Then the question is why it doesn't work on CMS11/Commerce13. Does anyone know? 

Thanks Eric!

Apr 01, 2022 15:40

I did a test on a CMS11 Alloy instance and I got the same results as for CMS12.

I created my Visitor Group with the same settings as for CMS12.

Then I configured the Access Rights on the Alloy Plan section to only allow the Read access to my Visitor Group (ForumVG)

Then when I access the site, I can only see and access the Alloy Plan Section with a user matching my Visitor Group criteria.

For my examples, I used CMS users.  I thing this might be a difference with your setup.  How to you create and configure your Commerce User ?


Apr 01, 2022 16:09

I think the problem is that it is a Commerce user.

Users are added in the AspNetUsers table in the Commerce database and are connected to the cls_Contact table using the UserId table and the value ""

We are using this plugin to handle the Commerce users:

I'm not sure why this is used, it was implemented like 6 years ago.


Apr 01, 2022 16:27

From what I can see, I think you will need to create your own visitor group criteria, since the user information are not part of the CMS database (and user profile) but in the Commerce instead.


Apr 01, 2022 17:15


Ended up with creating our own criterias, works just fine.



Apr 19, 2022 8:55
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.