Knowledge articles are visible to all assignment groups and not only one group users

mania
Tera Contributor

Hi,

Knowledge articles are visible to all assignment groups but i want to show all the Knowledge articles for only one group remining group should not be show.

Note: Not using any portals and only using workspace.

Can anyone please help on this, It will be useful.

Thanks!

8 REPLIES 8

Yes, after applied the user criteria also not working can your please suggest the code to visible kb articles to show only "a" group users not for all group users in workspace view.

Tried with the below code but not working:

var gr = new GlideRecord('sys_user_grmember');
gr.addQuery('user', gs.getUserID());
gr.addQuery('group.name', '78872e5783d122101b3af4a6feaad37b'); // sys_id of "a" group 
gr.query();
answer = gr.hasNext();

Can you please help on this, It will be useful.

Thanks!

Hi @mania 

in your script line 

gr.addQuery('group.name', '78872e5783d122101b3af4a6feaad37b');

is wrong. Instead use

gr.addQuery('group', '78872e5783d122101b3af4a6feaad37b');

 

I did as per your script line suggested and imporsanated with "a" group user and checked not visible kb articles and checked with the another group user also not visible kb articles.

mania_1-1747065517340.png

 

mania_0-1747065477692.png

Can you please suggest more to achive.

Thanks!

@mania Try giving tablename.* Read acl also