human_resources TYPE is missing

Don Dom
Tera Contributor

Hello.

I created PDI and activate HRSD plugins.

 

I try to do labs from HR module (foundation) and create HR groups.

All existing groups in PDI got "human_resources" type.

DonDom_0-1699705947309.png

When I create a new group as "HR ADMIN" the type is always empty and even ADMIN is not able to edit it:

DonDom_1-1699705996132.png

I'm not even able to add TYPE field in the form as admin - form gets "red".

 

TYPE is also not visible in XML from any group like "human_resources"

 

What is the issue with that? Doing labs get's complicated...

Cheers.

2 REPLIES 2

Danish Bhairag2
Tera Sage
Tera Sage

Hi @Don Dom ,

 

If manually you are not able to add it u can try it from background script. You can use below code to do that

 

var gr = new GlideRecord('sys_user_group');
gr.addQuery('sys_id','enter sys id of the group record here');
gr.query();
if(gr.next()){
    gr.type = 'enter sysid of the type which u want to populate the group with';
    gr.update();
}

 

Thanks,

Danish

 

David Aldridge
Giga Guru

Hi @Don Dom 

The Type field isn't searchable from the list view. When creating a new group, you should be able to add one or more types from the selector (circled below). You need to click on the lock to unlock it, then select the types you want to apply.

DavidAldridge_0-1699829266426.png

DavidAldridge_1-1699829340604.png

 

Hope this helps.