Catalog Item/Content Item 'Available' and 'Not Available' User Criteria functionality

Sharon Williams
Tera Contributor

I have a Content Item that has a user criteria added to the 'Available' tab.  I have added a user criteria to the 'Not Available' tab.  To test the updates, I impersonated a user that meets the user criterial in both of 'Available' and 'Not Available' tabs.  I ran the user criteria diagnostic that showed the the user should Not be able to see the content item.  However, when I impersonate the user in Employee Center, they can see and access the content item.  I added the user criteria to the 'Not Available' tab to restrict the Content Item to the users that meet that criteria.  Question -- If the user criteria for 'Available' and 'Not Available' are both true for a user, does the user criteria for 'Available' take precedence?  Also, can you suggest what I can do to make this work?  See attachments that contain the 'Available' and 'Not Available' user criteria.

 

Thank you.

5 REPLIES 5

Kavita_Bhojane
Tera Guru

Hi @Sharon Williams ,

 

In Available For script you can check one more condition along with other conditions as below:

 

User.Company Code.Company ID is not 622

 

This way user won't be able to see content item.

 

Please mark my answer helpful if you find it useful.

 

Thanks,

Kavita Bhojane

Hi Kavita.  Thanks for your reply.  I have more than one User.Company Code.Company ID to check for.  I have attached a script I created that did not work.  I'm not sure how to update the script in Available to include the additional code that is needed.  Can you help with that?

Kavita_Bhojane
Tera Guru

Hi @Sharon Williams ,

 

You can write below condition for multiple User.Company Code.Company ID:

 

User.Company Code.Company IDNOT LIKE622^ORUser.Company Code.Company IDNOT LIKE611^ORUser.Company Code.Company ID.........

 

Please mark my answer helpful if you find it useful.

 

Thanks,

Kavita Bhojane

 

Kavita_Bhojane
Tera Guru

Hi @Sharon Williams ,

 

Have you tried above condition?

 

Regards,

Kavita Bhojane