Is it possible to change the default landing page of ITIL users to Agent workspace

Kumar147
Tera Contributor

Hi all,

 

In General ITIL users will land up into navigation page, but i want to change the default landing page to Agent workspace page instead of navigation page. Is it possible to change the default landing page.

2 ACCEPTED SOLUTIONS

Shruti
Mega Sage
Mega Sage

Create a group for ITIL users. Assign 'itil' role to the group

Create a business rule (After insert - Condition: Group is 'ITIL groupname' ) on Group Member table

(function executeRule(current, previous /*null when async*/ ) {

        var gr = new GlideRecord('sys_user_preference');
        gr.addQuery('name', 'my_home_navigation_page');
        gr.addQuery('user', current.user.toString());
        gr.query();

        if (gr.next()) {
            gr.value = '/workspace/agent';
            gr.update();
        } else {

            gr.value = '/workspace/agent';
            gr.name = 'my_home_navigation_page';
            gr.user = current.user.toString();
            gr.insert();

        }
})(current, previous);

  

View solution in original post

Hi @Kumar147,

 

The above BR is applicable for domain-separated instances, Write BR on the required Domain then logic should work.

 

Please mark the answer correct/helpful based on Impact.
Regards, Shekhar

View solution in original post

3 REPLIES 3

Shruti
Mega Sage
Mega Sage

Create a group for ITIL users. Assign 'itil' role to the group

Create a business rule (After insert - Condition: Group is 'ITIL groupname' ) on Group Member table

(function executeRule(current, previous /*null when async*/ ) {

        var gr = new GlideRecord('sys_user_preference');
        gr.addQuery('name', 'my_home_navigation_page');
        gr.addQuery('user', current.user.toString());
        gr.query();

        if (gr.next()) {
            gr.value = '/workspace/agent';
            gr.update();
        } else {

            gr.value = '/workspace/agent';
            gr.name = 'my_home_navigation_page';
            gr.user = current.user.toString();
            gr.insert();

        }
})(current, previous);

  

Hello @Shruti  

Thank you for your reply.

Is this applicable for domain separated instance, it should not affect the other domains.

Hi @Kumar147,

 

The above BR is applicable for domain-separated instances, Write BR on the required Domain then logic should work.

 

Please mark the answer correct/helpful based on Impact.
Regards, Shekhar