How to setup new Guest user account for Inbound actions

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 08:37 AM
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
- Labels:
-
Notifications

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 08:40 AM
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
}

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 08:45 AM
Thank you
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 08:51 AM
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
}
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2020 09:04 AM
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.