How to allow users with role "snc_external" access /api/now/tinyurl

TKN
Tera Expert

Hi all,

Is there a way to grant users with the snc_external role access to /api/now/tinyurl?

 

In the out‑of‑the‑box widget-data-table portal widget, the export function URLs are generated using the TinyURL REST API. Everything works correctly for users with the snc_internal role. However, when users with the snc_external role attempt to use the export features, they receive a 403 Forbidden error, and the exported file contains incorrect data.

 

TKN_0-1770284127441.png

TKN_1-1770284398089.png

TKN_0-1770284736467.png

 

 

 

11 REPLIES 11

Ankur Bawiskar
Tera Patron

@TKN 

I could see that widget already has snc_external role

AnkurBawiskar_0-1770284640478.png

are you checking at the correct place?

May be within that widget at some place role check is happening

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Thanks for your quick reply.

the widget is visible to snc_external users. but the export functions is trying to send a HTTP POST message to /api/now/tinyurl to shorten the URL of the export functions when it is too long. However, snc_external users are not able to access to this REST api (403 forbidden). 

 

TKN_0-1770285279574.png

 

@TKN 

check my below response where solution is proposed

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

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

Thanks. I followed the solution in the link, but it didn’t resolve the issue. I guess the PollProcessor isn’t related to the problem I’m facing.