Acl about sn_cc.ConnectionInfoProvider api
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-21-2022 02:57 AM
I get the connection attribute through this api in script include (business rule call)
var provider = new sn_cc.ConnectionInfoProvider();
var connectionInfo = provider.getConnectionInfo("6219afbf9f03320021dd7501942e70fc");
if (connectionInfo != null) {
var datamap = connectionInfo.getDataMap();
gs.info(datamap["name"]);
gs.info(datamap["connection_url"]);
}else{
...
}
However, it was rejected by the ACL and connectionInfo returned null
Log like this
Security constraints prevent displauing information:no thrown error
When I use the admin user, everything is normal. This problem occurs when I switch to the normal user
In my impression, this is a server-side API, and ACL should not be executed
ConnectionInfoProvider - Scoped, Global | ServiceNow Developers
I don't see any information in the api document
Although the API is used normally after adding a role to normal users, it seems to be an abnormal behavior. normal users should not have this role
https://community.servicenow.com/community?id=community_question&sys_id=c3d6cbaddba4f700e0e80b55ca96191f&anchor=answer_f3b4df481b641410fff162c4bd4bcbdd&view_source=searchResult
This seems to be the same as Luis Franco's problem in the link
Unfortunately, the connection provided by him has expired and cannot be viewed
Does anyone know why
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 11:23 AM
Im facing the same issue. I really do not want to use a event (gs.eventQueue) as a workaround...
Im using the ConnectionInfoProvider in a async business rule, just like any webservice call this should be allowed to be used in this context.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-22-2022 07:40 PM
Have you ever tried to get it through GlideRecord and decrypt it?
This should be feasible as long as the script is in global
but my script is in the scope,I can't find another way,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-25-2024 01:55 AM
It's probably a long shot, but can anyone help with this one?
I'm experiencing the same issue.
What role should I add to the user to be able to access the API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-11-2024 03:47 AM
Hey, is there any solution for this item? facing this issue as-well