Try our conversational search powered by Generative AI!

How to set access rights for a product in Optimizely customized commerce?

Vote:
 

Hello, I am trying to set access right for a product that I have inside of a category. However, that does not seem to work because the Manage option to manage access rights is hidden. My main goal is to use that to get filtered data based on access rights for search and navigation using the SearchClient.

Is there a way around this?

Any help is appreciated.

#314406
Dec 19, 2023 14:18
Vote:
 

You can only set access rights at catalog and category (node) level. A product (or an entry in general) will inherit access right settings of its true parent. There was a plan to add per-entry setting if there was enough demand, but that's not been materialized 

#314411
Dec 19, 2023 16:29
Taher.elhares - Dec 20, 2023 10:12
Please check my post below
Vote:
 

I can't seem to get the product to inherit access rights from the parent category once restricting it to certain users. When I view the access right for the product under the restricted category it still says Everyone. The product is also still being fetched by the SearchClient.

#314451
Dec 20, 2023 10:12
Vote:
 

You'd need to filter search result yourself, for example

Access rights (Find 11) | Optimizely Developer Community

#314555
Dec 22, 2023 10:47
Taher.elhares - Jan 08, 2024 15:47
I replied to you. Please check my post below
Vote:
 

I'm sorry but I think you miss understood me. I just want the product to inherit the access levels from the parent category. No matter what I do the access level for the product remains as Everyone
when I change the access level of the parent category.

Based on the documentation it says:

You cannot set access rights for individual products. Products inherit permissions from their direct parents (but not "linked" parents).

I'm not sure what could be the issue to be honest.

#315278
Jan 08, 2024 15:46
Vote:
 

Do you mean this

#315281
Jan 08, 2024 19:41
Taher.elhares - Jan 09, 2024 6:07
I replied in the below post.
Vote:
 

Yes, that is what I mean. Changing the access level(Visible to) for the parent category of this product does not change the access level for the product(it should say restricted in the visible to label) .


I even tried to create new categories with new products to see if the issue is from a certain category or product, but with no prevail.


Any ideas?

#315331
Edited, Jan 09, 2024 6:07
Vote:
 

It seems to be a bug. I will look into it and get back to you

#315333
Jan 09, 2024 7:44
Taher.elhares - Jan 09, 2024 10:29
Okay, thank you
Vote:
 

The bug is COM-17635, I have asked the Commerce team to look into it 

#315337
Jan 09, 2024 10:33
Taher.elhares - Jan 09, 2024 10:58
Would you mind dropping the URL of the bug here? I can't find it on the website
Quan Mai - Jan 09, 2024 11:58
it is not yet set to public so you can't see it. I posted here for future reference :)
Taher.elhares - Jan 09, 2024 12:32
Oh okay, thanks. Please keep me updated.
Taher.elhares - Feb 13, 2024 10:00
Hello Quan Mai, any updates regarding the bug?
Quan Mai - Feb 13, 2024 10:06
Hi, QA reported back that it is only a display issue. the access right is actually correct at data level. we will still fix it but with lower priority
* 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.