Kb in Draft state cannot be edited by Knowledge Manger

Sam198
Mega Guru

Hi all,

I have knowledge manager that is not able to edit article in Draft state specifically the article that is created from an Incident when checking the 'knowledge' checkbox and that creates automatically a draft article as 'system'. When kb manager looks at that article all the fields are RO.

 

 

find_real_file.png

 

Edit: Looking at the acls, there is OOTB write acl on kb_knowledge:

var kbKnowledge = new KBKnowledge();
if(kbKnowledge.isMultipleKnowledgeUpdate())
answer = true;
else
answer = kbKnowledge.canWrite(current);

 

Would this be causing this as there is no update on the kb?

 

Did debug:

 

find_real_file.png

 

So it's definitely above ACL causing this, how do i change the ACL script to allow kb manager role? 

1 ACCEPTED SOLUTION

Nirosha Uddandi
Kilo Guru

You can write an write ACL on knowledge table

if (gs.hasRole('knowledge_manager')

  {

  answer = true; // allow editing

}

else {

  answer = false; // lock the field

}

 as admin may not see the effect of this as the ACL is set "Admin overrides" checked. You can uncheck this and see the impact,

or you can validate it by impersonating a user 

 

View solution in original post

3 REPLIES 3

Nirosha Uddandi
Kilo Guru

You can write an write ACL on knowledge table

if (gs.hasRole('knowledge_manager')

  {

  answer = true; // allow editing

}

else {

  answer = false; // lock the field

}

 as admin may not see the effect of this as the ACL is set "Admin overrides" checked. You can uncheck this and see the impact,

or you can validate it by impersonating a user 

 

Mahesh Nunna
ServiceNow Employee
ServiceNow Employee

HI Sam,

 

In OOB, if you were kb_manager or kb_onwer of knowledgebase of that article,  by default you will get write access. please check if you are the manager or owner of that knowledge base.

if not please add yourself as owner or manager to that knowledgebase. so that you don't need to add one more acl. we don't recommend adding acls to knowledge base and knowledge tables. we recommend grant access though user criteria.

 

Thanks,

Mahesh Nunna.

@mahesh Nunna. 

 

Our Knowledge managers or knowledge owners don't seem to have write access if the is in draft. is this how it should work ?

Thanks 

 

see attached images of it not working OOB

 find_real_file.png

Eric find_real_file.png