example: var grGrpRole = new GlideRecord ( 'sys_group_has_role' ); grGrpRole . initialize (); grGrpRole . group . setDisplayValue ( 'application development' ); grGrpRole . role . setDisplayValue ( 'agent_workspace_user' ); grGrpRole . insert ();
All things ServiceNow... take a look at my channel: https://www.youtube.com/@cloudminus89