How to setup new Guest user account for Inbound actions

Uzzawal Agrawa1
Giga Contributor

Hi Experts, 

I have a requirement of setting up a new Guest user account used for finance inbound actions processing. 

OOB we have "guest" user id which is used to processed inbound emails and create incidents from non servicenow user accounts (gmail, yahoo, etc.. )

I would like to create new user "finance.guest" and use it to capture as requester for creating finance request from inbound emails. 

Regards

8 REPLIES 8

Mike Patel
Tera Sage

on inbound action add (assuming user is sending email to specific finance email address)

if (email.to.toLowerCase().indexOf('financeemail@XXXX.com') != -1) {
    current.caller_id = 'XXXX'; //sysid of guest account
}

 

Thank you @Mike Patel but we want to capture it as guest only when the user is non serviceNow, if user exist in sys_user table it should create with the actual user as a caller. 

Also, I am not sure how we can bypass setting up OOB guest user account, I don't see it is used in OOB inbound actions, I guess this is set somewhere at system level.  

 

You can do something like (Basically check if current caller_id is guest user if so check if email was sent to finance if so then set your guestuser as caller_id)

if (current.caller_id == 'SYSID of guest user record') {
    if (email.to.toLowerCase().indexOf('financeemail@XXXX.com') != -1) {
        current.caller_id = 'XXXX'; //sysid of guest account
    }
}

brandenwright
Mega Expert

We have 3rd party emails and I created a local user for the email account.  I then made sure it was configured to be locked out and a non-interactive login.  This lets all received emails appear as the vendor who sends it.