Setup Oauth authentication in serviceNow so that external user can only login using it

Community Alums
Not applicable

Hi Experts,

 

Can anyone guide me:

Part1 : To Setup Oauth authentication in serviceNow so that external user can only login using it login in our instance instead of simple username and password and create records in incident table of our instance.

Part 2: Also are we required to create a record in sys_user table for that external user?

Please help!

6 REPLIES 6

Robbie
Kilo Patron
Kilo Patron

Hi @Community Alums,

 

Short answer to what could be quite a big conversation, in order for authentication to occur using Oauth or leverage a tool such as Okta or Sailpoint, the user does need to exist in ServiceNow (within the sys_user table).

 

Typically, the user would already exist within a tool such as Okta, and it would be created in ServiceNow as part of the initial setup and sync as new users are onboarded.

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

Community Alums
Not applicable

Thanks @Robbie for answering part 2 of the question, can you please help with the 1st part as well?

Hi @Community Alums,

 

Can you expand at all as to which tool or application you want to setup OAuth for? Generically however, 

ServiceNow has some step by step instructions (with click-throughs to other links) on how to set this up here: https://docs.servicenow.com/bundle/utah-platform-security/page/administer/security/task/t_SettingUpOAuth.html

 

To help others (or for me to help you more directly), please mark this response correct by clicking on Accept as Solution and/or Helpful.

 

Thanks, Robbie

Randheer Singh
ServiceNow Employee
ServiceNow Employee

Hi @Community Alums ,

You can use the OAuth Authorization code flow to achieve the desired outcome. Here is the product documentation. from the 3rd part application/client, the user will initiate the flow, and complete the login on the ServiceNow instance. The user will then authorize the client to make an integration call on its behalf.

for this flow to work the user record must be present in the sys_user table if you are using a ServiceNow username/password-based login flow. if you are using SSO for user login then you can enable automatic user provisioning to create users at run time.

Thanks,

Randheer