Issues with Hided External Content Catalog Item
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2024 05:53 AM
Team,
I have been tasked with building a content item and have it restricted to non contractors. so fareverything is working on the item it shows up on the portal and when clicked it goes where we want it to go. the issue i'm having is the Not Available for item is NOT hiding it on the portal if the user is a contractor. can you look at my code and tell me what im doing wrong please.
basically i want to hide it on the portal if the users emails address have CTR in it.. that is how we identify contractors
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2024 06:00 AM - edited 08-02-2024 06:02 AM
Hello @Walter Toney ,
I would like to suggest a different, safe and efficient approach to this problem statement -
- Create a contract group and add all contractor to it.
- You can also assign a role to this group and this group membership can be dynamically used across ACLs, QBRs and catalog items to maintain security. It will reduce re-work and re-scripting.
Specific to your code -
Can you try using while loop instead of if loop? Print the logs.
Mark this as Accepted Solution/Helpful if above info. helps in any way and help in closing this thread.
Regards,
Shubham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-02-2024 06:53 AM
we are talking 1000's of people The email address is assigned and is readonly so it can't change so the group and Role would not be efficient