How do I change the message 'You do not have sufficient privileges to access this knowledge item'

joyceelynn
Tera Contributor

joyceelynn_0-1739353295134.png

How can I change the message 'You do not have sufficient privileges to access this knowledge item' to 'The article <article number> has been retired.' when user tries to access a retired article. I have updated the message in macro 'kb_view_cannot_read'  but its not showing

joyceelynn_1-1739353383552.png

 

12 REPLIES 12

Prathamesh1
Giga Guru

Hi @joyceelynn ,

 

this message comes from macro <kb_view_cannot_read> . you can change it from here.

 

Hope this helps.

Please mark correct/helpful if applicable.

Thankyou.

 

 

Hi @Prathamesh1,

I have changed the message in macro as shown in the screenshot but its not reflecting the change

Hi @joyceelynn ,

 

check for the same message in this script include KBViewModelSNC. It should work.

 

Thankyou.

Ankur Bawiskar
Tera Patron
Tera Patron

@joyceelynn 

it comes from this widget on portal -> "Knowledge Article Content"

You can update the widget or clone it and then make necessary changes and then add the newly created widget to correct page

I hope you can take it from here based on your experience and developer skills

AnkurBawiskar_0-1739355278932.png

 

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Ankur Bawiskar
Tera Patron
Tera Patron

@joyceelynn 

Both the messages have their own meaning

You do not have sufficient privileges to access this knowledge item ->means access Issue

Out of the box the portal widget checks the access and also check if article is expired, if expired it has it's own message

Why to mix up both the things when they are meant to be different?

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader