Limited visibility to Announcements

AmanPratapS7233
Tera Expert

Hi All,

 

I have got a business requirement where I have to create and display announcement (dynamic) on portal and I am doing that via a flow designer based on certain trigger.

The issue here is that I want to show to announcement only to the users who are part of group A.

 

Can you suggest some methods to do this ?

 

 

Thanks

17 REPLIES 17

Hi @AmanPratapS7233 

 

To restrict ServiceNow portal announcements to specific users or groups, utilize the Service Portal User Criteria feature. This requires mapping User Criteria records to specific announcements using the m2m_announcement_uc_can_view (Can View) or m2m_announcement_uc_cannot_view (Cannot View) tables

 

Check the sample code from here and try to update your script:

https://www.servicenow.com/community/developer-forum/user-criteria-in-record-producer/m-p/2647539

 

Please Accept the solution if it assisted you with your question & Mark this response as Helpful.
Regards
Tanushree Maiti
ServiceNow Technical Architect
LinkedIn: https://www.linkedin.com/in/tanushreemaiti

@Tanushree Maiti 
I enabled the user criteria but, it has various other repercussions such as, the portal landing page got down (404 not found) because it was previously running on roles. 

So, I cannot enable the user criteria sys property for announcement. Do we have any other method ?

Paul Kunze
Kilo Sage

Hi, you cannot limit an announcement directly by group. But you can limit it by role. Just create a specific role, assign it to your group and then put it into the announcement's "Roles" field.

To add roles in an announcement, you need to uncheck the "Public" checkbox:

PaulKunze_0-1780486985529.png

 

@Paul Kunze - I am creating announcement dynamically from a flow designer so, do you think it can be done in my case ?

Yes of course. In Flow Designer you can also populate the two fields "Public" (set to false) and "Roles" (set to your role sys_id).