Function hasRightsTo is not allowed in scope x_aegbs_issue_mana

VIKAS MISHRA
Tera Contributor

I have cloned a global widget and using it in a private scoped application but when i have added the widget into a portal page its giving error "Function hasRightsTo is not allowed in scope x_aegbs_issue_mana" to me.

I widget server side script i have a fuction with the name "hasRightsTo". please suggest how to resolve this

3 REPLIES 3

Inactive_Use751
Giga Contributor

Hi Vikas,

I believe you might have cloned the form widget in your custom scope from global scope.

please clone the widget in global scope only and try to add that widget which is cloned in global scope  and add it to your page .This worked for me.

Please mark helpful if this answers your question.

Thanks,

Mohith Devatte.

I have cloned this widget into global scop and then i came back to my custom scope and added that widget into the portal page in my custom scop, should i add this widget into the portal page while i am in global scop only?

Jason Nichols
ServiceNow Employee
ServiceNow Employee

Hi Vikas,

It sounds like your are running up against cross-application scope privileges, where APIs that are available from the Global scope are inaccessible from scoped apps. Chuck Tomasi has an excellent video on YouTube that discusses this issue and a way to work around it using wrapper scripts: 

Wrappers for global only APIs