Knowledge Management : KCS roles unable to do minor edit on their article, unable to republish.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-17-2023 03:42 PM - edited 11-17-2023 03:45 PM
Hi ,
Can someone please advise how to do the below?
We have the below requirements and I am unable to make it.
KCS role(not manager nor admin) users must be able to edit a published article without checking out. Version control is turned on.Minor revision properties on, fields are added for minor revisions in another property.
KCS role(not manager nor admin) users must be able to take actions such as retire and republish knowledge articles. (OOB scripts are used).
Thanks in Advance,
Sameer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-27-2023 11:48 AM
This may help you. You navigate to the scripts includes and locate the script include that overrides the OOB behavior.
var KBVersioning = Class.create();
....
hasAnyElevatedAccess: function(current){
var PATH_TO_AUTHOR = current.author; // is author mod
var PATH_TO_CURRENT_USER = gs.getUser().getID(); // is author mod
var PATH_TO_OWNER = "kb_knowledge_base.owner";
var PATH_TO_MANAGERS = "kb_knowledge_base.kb_managers";
if (gs.hasRole("knowledge_admin" || "kcs_publisher" || "kcs_candidate" || "kcs_contributor"))
return true;
if (this.isKnowledgeBaseOwner(current, PATH_TO_OWNER))
return true;
if (this.isKnowledgeBaseManager(current,PATH_TO_MANAGERS))
return true;
if (PATH_TO_AUTHOR == PATH_TO_CURRENT_USER) // is author mod
return true; // is author mod
return false;
},
type: 'KBVersioning'
});
You can modify it from here.
Solved: Knowledge versioning - modifiy roles (users) that ... - ServiceNow Community